Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers core: remove assert_held_device_hotplug()

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

Link: http://lkml.kernel.org/r/20170314125226.16779-3-heiko.carstens@de.ibm.com
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Heiko Carstens and committed by
Linus Torvalds
15c9e10d 55adc1d0

-6
-5
drivers/base/core.c
··· 639 639 return restart_syscall(); 640 640 } 641 641 642 - void assert_held_device_hotplug(void) 643 - { 644 - lockdep_assert_held(&device_hotplug_lock); 645 - } 646 - 647 642 #ifdef CONFIG_BLOCK 648 643 static inline int device_is_not_partition(struct device *dev) 649 644 {
-1
include/linux/device.h
··· 1140 1140 extern void lock_device_hotplug(void); 1141 1141 extern void unlock_device_hotplug(void); 1142 1142 extern int lock_device_hotplug_sysfs(void); 1143 - void assert_held_device_hotplug(void); 1144 1143 extern int device_offline(struct device *dev); 1145 1144 extern int device_online(struct device *dev); 1146 1145 extern void set_primary_fwnode(struct device *dev, struct fwnode_handle *fwnode);