|
41 | 41 | #include <linux/io.h>
|
42 | 42 | #include <linux/of_irq.h>
|
43 | 43 | #include <linux/of_device.h>
|
44 |
| -#include <linux/platform_device.h> |
45 | 44 | #include <linux/pinctrl/consumer.h>
|
46 | 45 |
|
47 | 46 | /*
|
@@ -469,19 +468,6 @@ static void mvebu_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
|
469 | 468 | }
|
470 | 469 | }
|
471 | 470 |
|
472 |
| -static struct platform_device_id mvebu_gpio_ids[] = { |
473 |
| - { |
474 |
| - .name = "orion-gpio", |
475 |
| - }, { |
476 |
| - .name = "mv78200-gpio", |
477 |
| - }, { |
478 |
| - .name = "armadaxp-gpio", |
479 |
| - }, { |
480 |
| - /* sentinel */ |
481 |
| - }, |
482 |
| -}; |
483 |
| -MODULE_DEVICE_TABLE(platform, mvebu_gpio_ids); |
484 |
| - |
485 | 471 | static struct of_device_id mvebu_gpio_of_match[] = {
|
486 | 472 | {
|
487 | 473 | .compatible = "marvell,orion-gpio",
|
@@ -555,9 +541,7 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
|
555 | 541 | mvchip->chip.base = id * MVEBU_MAX_GPIO_PER_BANK;
|
556 | 542 | mvchip->chip.ngpio = ngpios;
|
557 | 543 | mvchip->chip.can_sleep = 0;
|
558 |
| -#ifdef CONFIG_OF |
559 | 544 | mvchip->chip.of_node = np;
|
560 |
| -#endif |
561 | 545 |
|
562 | 546 | spin_lock_init(&mvchip->lock);
|
563 | 547 | mvchip->membase = devm_request_and_ioremap(&pdev->dev, res);
|
@@ -698,7 +682,6 @@ static struct platform_driver mvebu_gpio_driver = {
|
698 | 682 | .of_match_table = mvebu_gpio_of_match,
|
699 | 683 | },
|
700 | 684 | .probe = mvebu_gpio_probe,
|
701 |
| - .id_table = mvebu_gpio_ids, |
702 | 685 | };
|
703 | 686 |
|
704 | 687 | static int __init mvebu_gpio_init(void)
|
|
0 commit comments