9
0
Fork 0

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>
This commit is contained in:
Lucas Stach 2014-04-13 15:27:31 +02:00 committed by Sascha Hauer
parent 8cffe66263
commit 914d128608
1 changed files with 0 additions and 15 deletions

View File

@ -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,
};