Home
last modified time | relevance | path

Searched hist:"668 f06b9fb846ecedb73964ca5dd95ce441707be" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pps/
H A Dpps.cdiff 668f06b9fb846ecedb73964ca5dd95ce441707be Mon Jul 30 16:42:51 CDT 2012 Emil Goode <emilgoode@gmail.com> 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>