Emil Goode 668f06b9fb pps: return PTR_ERR on error in device_create
We should return PTR_ERR if the call to the device_create function fails.
Without this patch we instead return the value from a successful call to
cdev_add if the call to device_create fails.

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Acked-by: Devendra Naga <devendra.aaru@gmail.com>
Cc: Alexander Gordeev <lasaine@lvk.cs.msu.su>
Cc: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-30 17:25:21 -07:00
..
2012-07-26 11:25:33 -07:00
2012-07-22 13:36:52 -07:00
2012-07-23 16:31:31 -07:00
2012-07-26 20:29:52 -07:00
2012-07-26 13:56:38 -07:00
2012-07-24 22:43:04 -07:00
2012-07-24 16:24:11 -07:00
2012-07-30 17:25:16 -07:00
2012-07-30 17:25:16 -07:00
2012-07-26 20:29:52 -07:00
2012-07-24 14:07:22 -07:00
2012-07-24 16:17:07 -07:00
2012-07-24 14:05:46 -07:00
2012-07-26 11:25:33 -07:00
2012-07-24 18:11:22 -07:00
2012-07-26 12:57:41 -07:00
2012-07-26 11:25:33 -07:00
2012-07-24 16:17:07 -07:00