driver core: Call in reversed order in device_platform_notify_remove()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Aug 2023 13:36:54 +0000 (16:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 14:57:39 +0000 (16:57 +0200)
commit29c8ab79e91d35b93cfab87bf67a11516f7b2051
treea55d75542fb0829ac8fd1cbecfc65dcd832b524c
parentd21fdd07cea418c0d98c8a15fc95b8b8970801e7
driver core: Call in reversed order in device_platform_notify_remove()

It's logically correct to call the removal notifiers in the reversed order
as it might be dependent to each other. Luckily, platform_notify_remove()
currently is not used and the others have no dependency use, but theoretically
it's still possible.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230818133654.767986-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c