]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/of_device.h
Merge branch 'viafb-next' of git://github.com/schandinat/linux-2.6
[karo-tx-linux.git] / include / linux / of_device.h
index 975d347079d95ee7015e976a95888951c348a538..8bfe6c1d43654069b8fa2e1bbc61ab4d34dd4d22 100644 (file)
@@ -18,10 +18,11 @@ extern void of_device_make_bus_id(struct device *dev);
  * @drv: the device_driver structure to test
  * @dev: the device structure to match against
  */
-static inline int of_driver_match_device(const struct device *dev,
+static inline int of_driver_match_device(struct device *dev,
                                         const struct device_driver *drv)
 {
-       return of_match_device(drv->of_match_table, dev) != NULL;
+       dev->of_match = of_match_device(drv->of_match_table, dev);
+       return dev->of_match != NULL;
 }
 
 extern struct platform_device *of_dev_get(struct platform_device *dev);