From: Randy Dunlap on 9 Jun 2010 18:50 From: Randy Dunlap <randy.dunlap(a)oracle.com> Drivers may use struct of_device (struct platform_device), even when CONFIG_OF_DEVICE is not enabled, so minimally provide that struct for that kconfig case. Signed-off-by: Randy Dunlap <randy.dunlap(a)oracle.com> Cc: Grant Likely <grant.likely(a)secretlab.ca> Cc: Dave Miller <davem(a)davemloft.net> --- include/linux/of_device.h | 4 ++++ 1 file changed, 4 insertions(+) --- linux-next-20100609.orig/include/linux/of_device.h +++ linux-next-20100609/include/linux/of_device.h @@ -47,6 +47,10 @@ extern ssize_t of_device_get_modalias(st extern int of_device_uevent(struct device *dev, struct kobj_uevent_env *env); +#else + +#include <linux/platform_device.h> +#define of_device platform_device #endif /* CONFIG_OF_DEVICE */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: input: fixup X86_MRST selects Next: [PATCH 2/2 -next] niu: always include of_device.h |