Revert "driver-core: platform: probe of-devices only using list of compatibles"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 20:52:59 +0000 (12:52 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 20:52:59 +0000 (12:52 -0800)
commit112d125a89479519efc437b2961b8d4a98761c1b
tree41395065cff396a1e09fc9e5f656356419a48e31
parentc21b04f9890ce35bfbb4f5ee1937017613f66017
Revert "driver-core: platform: probe of-devices only using list of compatibles"

This reverts commit 67d02a1bbb334558e9380409a3cd426b36d4578b

This should reallow binding of of-devices by name.

It turned out that there are valid reasons (e.g. step by step conversion
to device tree probing using auxdata) to bind of-instantiated devices to
drivers by name. So revert to the original logic.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org
drivers/base/platform.c