From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony@atomide.com (Tony Lindgren) Date: Wed, 25 Sep 2013 16:26:59 -0700 Subject: [PATCH 4/4] ARM: OMAP2+: Use pdata quirks for wl12xx legacy init In-Reply-To: <20130920173821.2584.1124.stgit@localhost> References: <20130920173310.2584.24522.stgit@localhost> <20130920173821.2584.1124.stgit@localhost> Message-ID: <20130925232658.GD8949@atomide.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org * Tony Lindgren [130920 10:46]: > --- a/arch/arm/mach-omap2/pdata-quirks.c > +++ b/arch/arm/mach-omap2/pdata-quirks.c > +#if IS_ENABLED(CONFIG_WL12XX) > + > +static struct wl12xx_platform_data wl12xx __initdata; > + > +static void __init __used legacy_init_wl12xx(unsigned ref_clock, > + unsigned tcxo_clock, > + int gpio) > +{ > + int res; > + > + wl12xx.board_ref_clock = ref_clock; > + wl12xx.board_tcxo_clock = tcxo_clock; > + wl12xx.irq = gpio_to_irq(gpio); > + > + res = wl12xx_set_platform_data(&wl12xx); > + if (res) { > + pr_err("error setting wl12xx data: %d\n", res); > + return; > + } > +} > +#else > +static inline void omap_init_wl12xx_of(void) > +{ > +} > +#endif > + This should be legacy_init_wl12xx(unsigned ref_clock, unsigned tcxo_clock, int gpio) instead of just omap_init_wl12xx_of(void). I've updated the patch and pushed this series to omap-for-v3.13/quirk. Regards, Tony