summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-04-13 15:27:31 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-23 11:39:13 +0200
commit914d12860807539f5a9e98560167939e1131b3e0 (patch)
tree18ee68d825d3aeaf72ba0c6b5501b4ca7480ca59 /drivers/gpio
parent8cffe6626325a87ad80c629b87884f68f5f4931e (diff)
downloadbarebox-914d12860807539f5a9e98560167939e1131b3e0.tar.gz
barebox-914d12860807539f5a9e98560167939e1131b3e0.tar.xz
gpio: tegra: remove dead code
Tegra is DT only, so remove platform code. While at it remove unused struct. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-tegra.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index e84c71a234..18a08f1e6a 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,
};