From: Emil Goode Date: Mon, 30 Jul 2012 21:42:51 +0000 (-0700) Subject: pps: return PTR_ERR on error in device_create X-Git-Tag: v3.6-rc1~41^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=668f06b9fb846ecedb73964ca5dd95ce441707be;p=pandora-kernel.git 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 Acked-by: Devendra Naga Cc: Alexander Gordeev Cc: Rodolfo Giometti Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed