Commit 165b6c2f authored by Stephen Warren's avatar Stephen Warren Committed by Grant Likely

gpio/tegra: assume CONFIG_OF

Tegra only supports, and always enables, device tree. Remove all ifdefs
and runtime checks for DT support from the driver.
Signed-off-by: default avatarStephen Warren <>
Signed-off-by: default avatarGrant Likely <>
parent e97f9b52
......@@ -398,10 +398,11 @@ static int tegra_gpio_probe(struct platform_device *pdev)
int j;
match = of_match_device(tegra_gpio_of_match, &pdev->dev);
if (match)
config = (struct tegra_gpio_soc_config *)match->data;
config = &tegra20_gpio_config;
if (!match) {
dev_err(&pdev->dev, "Error: No device match found\n");
return -ENODEV;
config = (struct tegra_gpio_soc_config *)match->data;
tegra_gpio_bank_stride = config->bank_stride;
tegra_gpio_upper_offset = config->upper_offset;
......@@ -462,9 +463,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)
tegra_gpio_chip.of_node = pdev->dev.of_node;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment