]> git.karo-electronics.de Git - linux-beck.git/commit
driver-core: platform: probe of-devices only using list of compatibles
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 13 Nov 2015 08:14:20 +0000 (09:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2016 01:39:33 +0000 (17:39 -0800)
commit67d02a1bbb334558e9380409a3cd426b36d4578b
tree62755f35efb5515d532ed25dbdce830c7f46a602
parentcf68d85529f7dccc24412887d46e364f4b422a5d
driver-core: platform: probe of-devices only using list of compatibles

There are several indications that make a platform device match a
platform driver. For devices that are instantiated by a device tree
matching by name, id table or acpi mechanisms doesn't make sense and
might result in surprising effects. So limit matching to use the
driver's of_match_table for these.

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