From da009f39f85a3ee9deeb10f0f05ddd4efdd67020 Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Tue, 4 Mar 2008 15:09:06 -0800 Subject: [PATCH] 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 Cc: Kay Sievers Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed