software nodes: Split software_node_notify()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Jul 2021 17:27:12 +0000 (19:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Jul 2021 17:17:05 +0000 (19:17 +0200)
commit384f5a857baeba88cf013b36999a97b471e4bd9c
treec463bf865eab9d338b916f752ffb1ce29df4c272
parentd0b8e398319e5b09f3cb26ee8288ce356646fca6
software nodes: Split software_node_notify()

Split software_node_notify_remove) out of software_node_notify()
and make device_platform_notify() call the latter on device addition
and the former on device removal.

While at it, put the headers of the above functions into base.h,
because they don't need to be present in a global header file.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/base/base.h
drivers/base/core.c
drivers/base/swnode.c
include/linux/property.h