]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
drivers/of: fix build error when CONFIG_PPC_DCR is set
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 15 Jul 2010 05:51:43 +0000 (23:51 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 15 Jul 2010 05:51:43 +0000 (23:51 -0600)
Commit 94c0931983ee9d1cd96c32d52ac64c17464f0bbd (of:
Merge of_device_alloc() and of_device_make_bus_id()) moved code that
does calls a dcr routine without including the correct header which
causes the following build error on some powerpc configurations:

drivers/of/platform.c: In function 'of_device_make_bus_id':
drivers/of/platform.c:437: error: implicit declaration of function 'of_translate_dcr_address'

This patch adds the appropriate header to drivers/of/platform.c

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

index 125f2bc0905e40e230ff62926652092a13e2e966..5be008035b940feb4c99d96609c5d4c4c1042f20 100644 (file)
 #include <linux/of_device.h>
 #include <linux/of_platform.h>
 
+#if defined(CONFIG_PPC_DCR)
+#include <asm/dcr.h>
+#endif
+
 extern struct device_attribute of_platform_device_attrs[];
 
 static int of_platform_bus_match(struct device *dev, struct device_driver *drv)