From 224cd7115abb5b05a5d665551452c271449ce80b Mon Sep 17 00:00:00 2001 From: Vikram Narayanan Date: Wed, 26 Sep 2012 22:12:22 +0530 Subject: [PATCH] arm/omap: Replace board_ref_clock with enum values Use the enum for board_ref_clock from linux/wl12xx.h Signed-off-by: Vikram Narayanan Cc: linux-omap@vger.kernel.org Reviewed-by: Pankaj Jangra Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/board-omap4panda.c | 3 +-- arch/arm/mach-omap2/board-zoom-peripherals.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 2b012f9d6925..c3832ddb07f9 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c @@ -247,8 +247,7 @@ static struct platform_device omap_vwlan_device = { }; static struct wl12xx_platform_data omap_panda_wlan_data __initdata = { - /* PANDA ref clock is 38.4 MHz */ - .board_ref_clock = 2, + .board_ref_clock = WL12XX_REFCLOCK_38, /* 38.4 MHz */ }; static struct twl6040_codec_data twl6040_codec = { diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index 6bcc107b9fc3..a935f319e719 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c @@ -194,8 +194,7 @@ static struct platform_device omap_vwlan_device = { }; static struct wl12xx_platform_data omap_zoom_wlan_data __initdata = { - /* ZOOM ref clock is 26 MHz */ - .board_ref_clock = 1, + .board_ref_clock = WL12XX_REFCLOCK_26, /* 26 MHz */ }; static struct omap2_hsmmc_info mmc[] = { -- 2.39.5