aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Cvek <petr.cvek@tul.cz>2015-09-28 17:39:51 -0400
committerRobert Jarzmik <robert.jarzmik@free.fr>2015-10-14 17:07:02 -0400
commit28496be98e5e3761ed146bbc82e18f6a7bb5200b (patch)
tree6a5910d5e1102fac59a4f2e6274ff56bd740b19d
parent31134b515f94050723e8841232b7979e52db2601 (diff)
ARM: pxa: magician: Remove pdata for pasic3-leds
The pasic3-leds driver was never in vanilla kernel. Actual configuration data for a hypothetical driver does not describe hardware completely, so remove them. This patch prepare HTC Magician machine code to pasic3-leds driver addition. Signed-off-by: Petr Cvek <petr.cvek@tul.cz> Acked-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
-rw-r--r--arch/arm/mach-pxa/magician.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index 4a4e4789a1a5..896b268c3ab7 100644
--- a/arch/arm/mach-pxa/magician.c
+++ b/arch/arm/mach-pxa/magician.c
@@ -451,46 +451,6 @@ static struct platform_device leds_gpio = {
451}; 451};
452 452
453/* 453/*
454 * PASIC3 LEDs
455 */
456
457static struct pasic3_led pasic3_leds[] = {
458 {
459 .led = {
460 .name = "magician:red",
461 .default_trigger = "ds2760-battery.0-charging",
462 },
463 .hw_num = 0,
464 .bit2 = PASIC3_BIT2_LED0,
465 .mask = PASIC3_MASK_LED0,
466 },
467 {
468 .led = {
469 .name = "magician:green",
470 .default_trigger = "ds2760-battery.0-charging-or-full",
471 },
472 .hw_num = 1,
473 .bit2 = PASIC3_BIT2_LED1,
474 .mask = PASIC3_MASK_LED1,
475 },
476 {
477 .led = {
478 .name = "magician:blue",
479 .default_trigger = "bluetooth",
480 },
481 .hw_num = 2,
482 .bit2 = PASIC3_BIT2_LED2,
483 .mask = PASIC3_MASK_LED2,
484 },
485};
486
487static struct pasic3_leds_machinfo pasic3_leds_info = {
488 .num_leds = ARRAY_SIZE(pasic3_leds),
489 .power_gpio = EGPIO_MAGICIAN_LED_POWER,
490 .leds = pasic3_leds,
491};
492
493/*
494 * PASIC3 with DS1WM 454 * PASIC3 with DS1WM
495 */ 455 */
496 456
@@ -509,8 +469,7 @@ static struct resource pasic3_resources[] = {
509}; 469};
510 470
511static struct pasic3_platform_data pasic3_platform_data = { 471static struct pasic3_platform_data pasic3_platform_data = {
512 .led_pdata = &pasic3_leds_info, 472 .clock_rate = 4000000,
513 .clock_rate = 4000000,
514}; 473};
515 474
516static struct platform_device pasic3 = { 475static struct platform_device pasic3 = {