summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c24xx
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-11-21 20:15:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-09 03:25:10 +0100
commitbbc780f8bab52fef1784151d3c4982cb1143edd2 (patch)
tree01585734243405412fbfb466e0eb6919437c4746 /arch/arm/mach-s3c24xx
parentfirmware: dmi-sysfs: Remove "dmi" directory on module exit (diff)
downloadlinux-bbc780f8bab52fef1784151d3c4982cb1143edd2.tar.xz
linux-bbc780f8bab52fef1784151d3c4982cb1143edd2.zip
driver core: fix device_create() error path
We call put_device() in the error path, which is fine for dev==NULL. However, in case kobject_set_name_vargs() fails, we have dev!=NULL but device_initialized() wasn't called, yet. Fix this by splitting device_register() into explicit calls to device_add() and an early call to device_initialize(). Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions