of/platform: Fix device_links_supplier_sync_state_resume() warning
authorSaravana Kannan <saravanak@google.com>
Wed, 7 Aug 2019 02:05:58 +0000 (19:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Aug 2019 15:37:48 +0000 (17:37 +0200)
commit5adf5781019dd21233d6d13ab0d78bf03a13d4f1
tree0c09efe652f8fa3538faf4b99c4fd7860e18d3b0
parent0ad0bdd8ba6489d05044aa5ca6c6f7491be7743c
of/platform: Fix device_links_supplier_sync_state_resume() warning

In platforms/devices which have CONFIG_OF turned on but don't have a
populated DT, the calls to device_links_supplier_sync_state_pause() and
device_links_supplier_sync_state_resume() can get mismatched. This will
cause a warning during boot. Fix the warning by making sure the calls are
matched even in that case.

Reported-by: Qian Cai <cai@lca.pw>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20190807020559.74458-1-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/platform.c