Files
android_kernel_xiaomi_sm8450/drivers/base
Ben Dooks da009f39f8 sysdev: detect multiple driver registrations
I've just found how easy it is to accidentally register a sysdev_driver for
two different classes.  When this happens, bad things happen as the
sysdev_driver structure keeps has the list entry for the driver
registration.

The following patch makes a WARN_ON() if this happens, although I think
BUG_ON or returning -EAGAIN could also be valid responses to this.

Signed-off-by: Ben Dooks <ben@fluff.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-04-19 19:10:24 -07:00
..
2008-01-24 22:50:12 -08:00
2008-01-24 22:50:12 -08:00
2008-01-24 22:50:12 -08:00
2006-06-21 12:40:49 -07:00
2008-03-10 16:33:33 -07:00