aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/platform.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-07-15 01:51:43 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-07-15 01:51:43 -0400
commit596c955c126608b51ac1ca56de9d670c1f6464cb (patch)
tree0a7d9d03a7a2dadf7106ad2f63bbf8dea01ec00e /drivers/of/platform.c
parent035ebefc737cce56d3938e9b7eaa5ac0e9c28715 (diff)
drivers/of: fix build error when CONFIG_PPC_DCR is set
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>
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r--drivers/of/platform.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 125f2bc0905e..5be008035b94 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -19,6 +19,10 @@
19#include <linux/of_device.h> 19#include <linux/of_device.h>
20#include <linux/of_platform.h> 20#include <linux/of_platform.h>
21 21
22#if defined(CONFIG_PPC_DCR)
23#include <asm/dcr.h>
24#endif
25
22extern struct device_attribute of_platform_device_attrs[]; 26extern struct device_attribute of_platform_device_attrs[];
23 27
24static int of_platform_bus_match(struct device *dev, struct device_driver *drv) 28static int of_platform_bus_match(struct device *dev, struct device_driver *drv)