]> git.karo-electronics.de Git - karo-tx-linux.git/commit
of/device: Protect against binding of_platform_drivers to non-OF devices
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 22 Jul 2010 16:36:28 +0000 (10:36 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 24 Jul 2010 15:57:53 +0000 (09:57 -0600)
commitc1b6d380b781b5238989a4bfba02450057670804
tree86f0acab0ce296b307150f25ab166191e5c3f6d1
parent295960429675e17ec658320ebb24385727032bed
of/device: Protect against binding of_platform_drivers to non-OF devices

There is an unlikely chance of this situation is occurring, but it is
easy to protect against.  If a matching entry cannot be found in the
of_match_table, then don't bind the driver.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/platform.c