aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/palmtx.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2010-06-03 21:07:33 -0400
committerEric Miao <eric.y.miao@gmail.com>2010-08-05 02:32:14 -0400
commit241cf473114fedfaeb320aa27a339c8a1e30393c (patch)
treef3f9e3f9d49c7ae721ffc45a8952b94cb684970e /arch/arm/mach-pxa/palmtx.c
parent8499ded85927ca84a246a6502018087e19b7df2c (diff)
[ARM] pxa: fix all devices using wm97xx_batt.h
This file is scheduled for removal, therefore fix all devices that use this file to use the suggested wm97xx.h and pass platform data properly. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Tomas Cech <sleep_walker@suse.cz> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/palmtx.c')
-rw-r--r--arch/arm/mach-pxa/palmtx.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c
index ecc1a401598e..a5429cdddad5 100644
--- a/arch/arm/mach-pxa/palmtx.c
+++ b/arch/arm/mach-pxa/palmtx.c
@@ -25,7 +25,7 @@
25#include <linux/pda_power.h> 25#include <linux/pda_power.h>
26#include <linux/pwm_backlight.h> 26#include <linux/pwm_backlight.h>
27#include <linux/gpio.h> 27#include <linux/gpio.h>
28#include <linux/wm97xx_batt.h> 28#include <linux/wm97xx.h>
29#include <linux/power_supply.h> 29#include <linux/power_supply.h>
30#include <linux/usb/gpio_vbus.h> 30#include <linux/usb/gpio_vbus.h>
31#include <linux/mtd/nand.h> 31#include <linux/mtd/nand.h>
@@ -359,9 +359,9 @@ static struct platform_device power_supply = {
359}; 359};
360 360
361/****************************************************************************** 361/******************************************************************************
362 * WM97xx battery 362 * WM97xx audio, battery
363 ******************************************************************************/ 363 ******************************************************************************/
364static struct wm97xx_batt_info wm97xx_batt_pdata = { 364static struct wm97xx_batt_pdata palmtx_batt_pdata = {
365 .batt_aux = WM97XX_AUX_ID3, 365 .batt_aux = WM97XX_AUX_ID3,
366 .temp_aux = WM97XX_AUX_ID2, 366 .temp_aux = WM97XX_AUX_ID2,
367 .charge_gpio = -1, 367 .charge_gpio = -1,
@@ -375,15 +375,17 @@ static struct wm97xx_batt_info wm97xx_batt_pdata = {
375 .batt_name = "main-batt", 375 .batt_name = "main-batt",
376}; 376};
377 377
378/****************************************************************************** 378static struct wm97xx_pdata palmtx_wm97xx_pdata = {
379 * aSoC audio 379 .batt_pdata = &palmtx_batt_pdata,
380 ******************************************************************************/
381static struct palm27x_asoc_info palmtx_asoc_pdata = {
382 .jack_gpio = GPIO_NR_PALMTX_EARPHONE_DETECT,
383}; 380};
384 381
385static pxa2xx_audio_ops_t palmtx_ac97_pdata = { 382static pxa2xx_audio_ops_t palmtx_ac97_pdata = {
386 .reset_gpio = 95, 383 .reset_gpio = 95,
384 .codec_pdata = { &palmtx_wm97xx_pdata, },
385};
386
387static struct palm27x_asoc_info palmtx_asoc_pdata = {
388 .jack_gpio = GPIO_NR_PALMTX_EARPHONE_DETECT,
387}; 389};
388 390
389static struct platform_device palmtx_asoc = { 391static struct platform_device palmtx_asoc = {
@@ -562,7 +564,6 @@ static void __init palmtx_init(void)
562 pxa_set_ac97_info(&palmtx_ac97_pdata); 564 pxa_set_ac97_info(&palmtx_ac97_pdata);
563 pxa_set_ficp_info(&palmtx_ficp_platform_data); 565 pxa_set_ficp_info(&palmtx_ficp_platform_data);
564 pxa_set_keypad_info(&palmtx_keypad_platform_data); 566 pxa_set_keypad_info(&palmtx_keypad_platform_data);
565 wm97xx_bat_set_pdata(&wm97xx_batt_pdata);
566 567
567 platform_add_devices(devices, ARRAY_SIZE(devices)); 568 platform_add_devices(devices, ARRAY_SIZE(devices));
568} 569}