[PATCH 1/2 -next] of_device.h: provide struct of_device even when not enabled

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Wednesday, June 9, 2010 - 3:44 pm

From: Randy Dunlap <randy.dunlap@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@oracle.com>
Cc:	Grant Likely <grant.likely@secretlab.ca>
Cc:	Dave Miller <davem@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 */
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for June 9, Stephen Rothwell, (Tue Jun 8, 8:34 pm)
Re: linux-next: Tree for June 9 (niu), Randy Dunlap, (Wed Jun 9, 10:36 am)
Re: linux-next: Tree for June 9 (niu), David Miller, (Wed Jun 9, 11:06 am)
Re: linux-next: Tree for June 9 (niu), Randy Dunlap, (Wed Jun 9, 11:08 am)
[PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Wed Jun 9, 3:29 pm)
Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Wed Jun 9, 3:40 pm)
Re: [PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Wed Jun 9, 3:42 pm)
[PATCH 1/2 -next] of_device.h: provide struct of_device ev ..., Randy Dunlap, (Wed Jun 9, 3:44 pm)
[PATCH 2/2 -next] niu: always include of_device.h, Randy Dunlap, (Wed Jun 9, 3:44 pm)
Re: [PATCH 2/2 -next] niu: always include of_device.h, Grant Likely, (Wed Jun 9, 4:45 pm)
Re: [PATCH 2/2 -next] niu: always include of_device.h, David Miller, (Wed Jun 9, 5:29 pm)
Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Thu Jun 10, 12:04 pm)
Re: [PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Tue Jun 15, 8:17 am)
problem: Re: [PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Mon Jun 28, 12:03 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Mon Jun 28, 1:18 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, Randy Dunlap, (Mon Jun 28, 1:23 pm)
RE: problem: Re: [PATCH] input: fixup X86_MRST selects, Pan, Jacob jun, (Mon Jun 28, 2:12 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Mon Jun 28, 3:44 pm)
RE: problem: Re: [PATCH] input: fixup X86_MRST selects, Pan, Jacob jun, (Mon Jun 28, 4:22 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, Dmitry Torokhov, (Thu Jul 1, 9:46 pm)
Re: problem: Re: [PATCH] input: fixup X86_MRST selects, H. Peter Anvin, (Thu Jul 1, 11:27 pm)