[PATCH 01/18] gpio: tegra: remove dead code
Lucas Stach
dev at lynxeye.de
Sun Apr 13 06:27:31 PDT 2014
Tegra is DT only, so remove platform code.
While at it remove unused struct.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
drivers/gpio/gpio-tegra.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index e84c71a23414..18a08f1e6ad0 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -38,11 +38,6 @@
#define GPIO_MSK_OE(x) (GPIO_REG(x) + config->upper_offset + 0x10)
#define GPIO_MSK_OUT(x) (GPIO_REG(x) + config->upper_offset + 0X20)
-struct tegra_gpio_bank {
- int bank;
- int irq;
-};
-
struct tegra_gpio_soc_config {
u32 bank_stride;
u32 upper_offset;
@@ -180,15 +175,6 @@ static struct tegra_gpio_soc_config tegra20_gpio_config = {
.bank_count = 7,
};
-static struct platform_device_id tegra_gpio_ids[] = {
- {
- .name = "tegra20-gpio",
- .driver_data = (unsigned long)&tegra20_gpio_config,
- }, {
- /* sentinel */
- },
-};
-
static __maybe_unused struct of_device_id tegra_gpio_dt_ids[] = {
{
.compatible = "nvidia,tegra20-gpio",
@@ -200,7 +186,6 @@ static __maybe_unused struct of_device_id tegra_gpio_dt_ids[] = {
static struct driver_d tegra_gpio_driver = {
.name = "tegra-gpio",
- .id_table = tegra_gpio_ids,
.of_compatible = DRV_OF_COMPAT(tegra_gpio_dt_ids),
.probe = tegra_gpio_probe,
};
--
1.9.0
More information about the barebox
mailing list