aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2009-12-04 08:36:15 +0000
committerLen Brown <[email protected]>2009-12-16 17:53:11 +0000
commit9634a627b330fcc7cdca25df4d7853ca9c7745de (patch)
treef5a727d12849a835546f5c5dc7fcb6b82182daae /net/lapb/lapb_in.c
parenttc1100-wmi - switch to using attribute group (diff)
downloadkernel-9634a627b330fcc7cdca25df4d7853ca9c7745de.tar.gz
kernel-9634a627b330fcc7cdca25df4d7853ca9c7745de.zip
tc1100-wmi - add error handling for device registration
Any of the platform API functions can fail; driver should be prepared to handle such failures. Also: - changed to platform_driver_probe() since the device is created right there with the driver; - added __devexit annotation to remove method; - fixed memory leak on module unload - named platform_device_del() is not enough to free platform device, need platform_device_unregister(). Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions