aboutsummaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorBorislav Petkov <[email protected]>2011-02-01 17:19:56 +0100
committerGreg Kroah-Hartman <[email protected]>2011-02-03 15:41:03 -0800
commitf4203e3032e5ae74c3e89df85a5a6d96022d0c49 (patch)
treec1030cc10185144df78137ad2bf85ef03ede3d54 /include/linux/timerqueue.h
parent1f7da214e26a8ee4fbb66af50e27147d5d115c5a (diff)
sysdev: Do not register with sysdev when erroring on add
When encountering an error while executing the driver's ->add method, we should cancel registration and unwind what we've regged so far. The low level ->add methods do return proper error codes but those aren't looked at in sysdev_driver_register(). Fix that by sharing the unregistering code. Signed-off-by: Borislav Petkov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions