Subject: [PATCH 4/4] ARM: OMAP2+: Use pdata quirks for wl12xx legacy init

From: [email-masked] (Tony Lindgren)
Date: Wed, 25 Sep 2013 16:26:59 -0700

* Tony Lindgren <[email-masked]> [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