From: Grant Likely Subject: Re: [PATCH 1/7] OF: make drivers depend on CONFIG_OF instead of CONFIG_PPC_OF Date: Tue, 16 Nov 2010 22:43:37 -0700 Message-ID: <20101117054337.GG12813@angua.secretlab.ca> References: <1289939635-30742-1-git-send-email-robherring2@gmail.com> <1289939635-30742-2-git-send-email-robherring2@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1289939635-30742-2-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Rob Herring Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Rob Herring List-Id: devicetree@vger.kernel.org On Tue, Nov 16, 2010 at 02:33:49PM -0600, Rob Herring wrote: > From: Rob Herring > > Some OF drivers could likely be used on non-powerpc OF based platforms, > so fix the kconfig depends to be CONFIG_OF instead of CONFIG_PPC_OF > > Signed-off-by: Rob Herring > --- > drivers/char/ipmi/ipmi_si_intf.c | 14 +++++++------- > drivers/mmc/host/Kconfig | 2 +- > drivers/mtd/Kconfig | 2 +- > drivers/mtd/maps/Kconfig | 2 +- > drivers/net/can/sja1000/Kconfig | 4 ++-- > drivers/serial/Kconfig | 2 +- > drivers/usb/host/isp1760-if.c | 8 ++++---- > 7 files changed, 17 insertions(+), 17 deletions(-) > > diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c > index 035da9e..1b33a42 100644 > --- a/drivers/char/ipmi/ipmi_si_intf.c > +++ b/drivers/char/ipmi/ipmi_si_intf.c > @@ -66,7 +66,7 @@ > #include > #include > > -#ifdef CONFIG_PPC_OF > +#ifdef CONFIG_OF > #include > #include > #endif > @@ -308,7 +308,7 @@ static int pci_registered; > #ifdef CONFIG_ACPI > static int pnp_registered; > #endif > -#ifdef CONFIG_PPC_OF > +#ifdef CONFIG_OF > static int of_registered; > #endif > > @@ -2540,7 +2540,7 @@ static struct pci_driver ipmi_pci_driver = { > #endif /* CONFIG_PCI */ > > > -#ifdef CONFIG_PPC_OF > +#ifdef CONFIG_OF > static int __devinit ipmi_of_probe(struct platform_device *dev, > const struct of_device_id *match) > { > @@ -2646,7 +2646,7 @@ static struct of_platform_driver ipmi_of_platform_driver = { > .probe = ipmi_of_probe, > .remove = __devexit_p(ipmi_of_remove), > }; > -#endif /* CONFIG_PPC_OF */ > +#endif /* CONFIG_OF */ Nack on this hunk. of_platform_drivers are now deprecated and the regular platform_driver should be used instead. Instead of extending the of_platform_driver usage to all the architectures, please move the of_match_table and the probe/remove routines into the platform_driver. > diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c > index 3b28dbf..c0de61e 100644 > --- a/drivers/usb/host/isp1760-if.c > +++ b/drivers/usb/host/isp1760-if.c > @@ -17,7 +17,7 @@ > > #include "isp1760-hcd.h" > > -#ifdef CONFIG_PPC_OF > +#ifdef CONFIG_OF > #include > #include > #endif > @@ -26,7 +26,7 @@ > #include > #endif > > -#ifdef CONFIG_PPC_OF > +#ifdef CONFIG_OF > static int of_isp1760_probe(struct platform_device *dev, > const struct of_device_id *match) > { > @@ -397,7 +397,7 @@ static int __init isp1760_init(void) > ret = platform_driver_register(&isp1760_plat_driver); > if (!ret) > any_ret = 0; > -#ifdef CONFIG_PPC_OF > +#ifdef CONFIG_OF > ret = of_register_platform_driver(&isp1760_of_driver); > if (!ret) > any_ret = 0; > @@ -417,7 +417,7 @@ module_init(isp1760_init); > static void __exit isp1760_exit(void) > { > platform_driver_unregister(&isp1760_plat_driver); > -#ifdef CONFIG_PPC_OF > +#ifdef CONFIG_OF > of_unregister_platform_driver(&isp1760_of_driver); > #endif > #ifdef CONFIG_PCI Ditto here. g.