software node: Fix node registration
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 1 Mar 2021 14:30:11 +0000 (17:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:28 +0000 (17:06 +0100)
commite86abde80d12f6ec1972502b9f85a2662215e9c6
tree4a460164d5df47b5bedc3cadbd72a65744a4f07f
parent08bccd721243012b1b45b57907c98e7c0f4557b4
software node: Fix node registration

commit 8891123f9cbb9c1ee531e5a87fa116f0af685c48 upstream.

Software node can not be registered before its parent.

Fixes: 80488a6b1d3c ("software node: Add support for static node descriptors")
Cc: 5.10+ <stable@vger.kernel.org> # 5.10+
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/swnode.c