Skip to contentSkip to conversation

drivers core: remove assert_held_device_hotplug()

PATCH New [email protected] 1 participant 1 message Mar 16, 2017 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 6/6 drivers core: remove assert_held_device_hotplug()

From: Heiko Carstens <[email protected]>
Subject: drivers core: remove assert_held_device_hotplug()

The last caller of assert_held_device_hotplug() is gone, so remove it again.

Cc Michal Hocko <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Vladimir Davydov <[email protected]>
Cc Ben Hutchings <[email protected]>
Cc Gerald Schaefer <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Sebastian Ott <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

---

 drivers/base/core.c    |    5 -----
 include/linux/device.h |    1 -
 2 files changed, 6 deletions(-)
drivers/base/core.c renamed from drivers/base/core.c~drivers-core-remove-assert_held_device_hotplug +0 -4
diff -puN drivers/base/core.c~drivers-core-remove-assert_held_device_hotplug drivers/base/core.c
@@ -639,11 +639,6 @@ int lock_device_hotplug_sysfs(void)
 	return restart_syscall();
 }
 
-void assert_held_device_hotplug(void)
-{
-	lockdep_assert_held(&device_hotplug_lock);
-}