linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL
@ 2012-04-04  3:53 Stephen Warren
  2012-04-05  6:41 ` Dong Aisheng
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stephen Warren @ 2012-04-04  3:53 UTC (permalink / raw)
  To: linus.walleij; +Cc: sfr, linux-kernel, linux-next, Stephen Warren

From: Stephen Warren <swarren@nvidia.com>

pinctrl/devicetree.c won't compile when !CONFIG_PINCTRL, since the
pinctrl headers don't declare some types when !PINCTRL. Make sure
pinctrl/Makefile only attempts to compile devicetree.c when OF &&
PINCTRL.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 drivers/pinctrl/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile
index 049c9fb..8e3c95a 100644
--- a/drivers/pinctrl/Makefile
+++ b/drivers/pinctrl/Makefile
@@ -5,7 +5,9 @@ ccflags-$(CONFIG_DEBUG_PINCTRL)	+= -DDEBUG
 obj-$(CONFIG_PINCTRL)		+= core.o
 obj-$(CONFIG_PINMUX)		+= pinmux.o
 obj-$(CONFIG_PINCONF)		+= pinconf.o
-obj-$(CONFIG_OF)		+= devicetree.o
+ifeq ($(CONFIG_OF),y)
+obj-$(CONFIG_PINCTRL)		+= devicetree.o
+endif
 obj-$(CONFIG_GENERIC_PINCONF)	+= pinconf-generic.o
 obj-$(CONFIG_PINCTRL_PXA3xx)	+= pinctrl-pxa3xx.o
 obj-$(CONFIG_PINCTRL_MMP2)	+= pinctrl-mmp2.o
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL
  2012-04-04  3:53 [PATCH] pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL Stephen Warren
@ 2012-04-05  6:41 ` Dong Aisheng
  2012-04-10  8:53 ` Linus Walleij
  2012-04-11  8:29 ` Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: Dong Aisheng @ 2012-04-05  6:41 UTC (permalink / raw)
  To: Stephen Warren
  Cc: linus.walleij, sfr, linux-kernel, linux-next, Stephen Warren

On Tue, Apr 03, 2012 at 09:53:56PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
> 
> pinctrl/devicetree.c won't compile when !CONFIG_PINCTRL, since the
> pinctrl headers don't declare some types when !PINCTRL. Make sure
> pinctrl/Makefile only attempts to compile devicetree.c when OF &&
> PINCTRL.
> 
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>

Regards
Dong Aisheng

>  drivers/pinctrl/Makefile |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile
> index 049c9fb..8e3c95a 100644
> --- a/drivers/pinctrl/Makefile
> +++ b/drivers/pinctrl/Makefile
> @@ -5,7 +5,9 @@ ccflags-$(CONFIG_DEBUG_PINCTRL)	+= -DDEBUG
>  obj-$(CONFIG_PINCTRL)		+= core.o
>  obj-$(CONFIG_PINMUX)		+= pinmux.o
>  obj-$(CONFIG_PINCONF)		+= pinconf.o
> -obj-$(CONFIG_OF)		+= devicetree.o
> +ifeq ($(CONFIG_OF),y)
> +obj-$(CONFIG_PINCTRL)		+= devicetree.o
> +endif
>  obj-$(CONFIG_GENERIC_PINCONF)	+= pinconf-generic.o
>  obj-$(CONFIG_PINCTRL_PXA3xx)	+= pinctrl-pxa3xx.o
>  obj-$(CONFIG_PINCTRL_MMP2)	+= pinctrl-mmp2.o
> -- 
> 1.7.5.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL
  2012-04-04  3:53 [PATCH] pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL Stephen Warren
  2012-04-05  6:41 ` Dong Aisheng
@ 2012-04-10  8:53 ` Linus Walleij
  2012-04-11  8:29 ` Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2012-04-10  8:53 UTC (permalink / raw)
  To: Stephen Warren; +Cc: sfr, linux-kernel, linux-next, Stephen Warren

On Wed, Apr 4, 2012 at 5:53 AM, Stephen Warren <swarren@wwwdotorg.org> wrote:

> From: Stephen Warren <swarren@nvidia.com>
>
> pinctrl/devicetree.c won't compile when !CONFIG_PINCTRL, since the
> pinctrl headers don't declare some types when !PINCTRL. Make sure
> pinctrl/Makefile only attempts to compile devicetree.c when OF &&
> PINCTRL.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>

I fixed this other Kconfig patch to address the same problem.

If you think this approach is better let me know...

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL
  2012-04-04  3:53 [PATCH] pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL Stephen Warren
  2012-04-05  6:41 ` Dong Aisheng
  2012-04-10  8:53 ` Linus Walleij
@ 2012-04-11  8:29 ` Linus Walleij
  2 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2012-04-11  8:29 UTC (permalink / raw)
  To: Stephen Warren; +Cc: sfr, linux-kernel, linux-next, Stephen Warren

On Wed, Apr 4, 2012 at 5:53 AM, Stephen Warren <swarren@wwwdotorg.org> wrote:

> From: Stephen Warren <swarren@nvidia.com>
>
> pinctrl/devicetree.c won't compile when !CONFIG_PINCTRL, since the
> pinctrl headers don't declare some types when !PINCTRL. Make sure
> pinctrl/Makefile only attempts to compile devicetree.c when OF &&
> PINCTRL.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>

OK applied this instead of the Kconfig way of fixing things...

Thanks,
Linus Walleij

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-11  8:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-04  3:53 [PATCH] pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL Stephen Warren
2012-04-05  6:41 ` Dong Aisheng
2012-04-10  8:53 ` Linus Walleij
2012-04-11  8:29 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).