diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-05-21 18:43:42 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-06-11 13:48:43 -0400 |
commit | c11bd557903395f436d63bb6dfb0f4b86ea365d5 (patch) | |
tree | ea19c6563329a0133c77e029791c83fb7d4240bc | |
parent | b4e395b2cb5ce871f23a176fed74316a7de64a97 (diff) |
mmc: tegra: use bus-width property instead of support-8bit
Update the driver to parse the new unified bus-width property introduced
in commit 7f21779 "mmc: dt: Consolidate DT bindings", instead of the legacy
support-8bit property.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index b38d8a78f6a0..6e5338a071ce 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -223,6 +223,7 @@ static struct tegra_sdhci_platform_data * __devinit sdhci_tegra_dt_parse_pdata( | |||
223 | { | 223 | { |
224 | struct tegra_sdhci_platform_data *plat; | 224 | struct tegra_sdhci_platform_data *plat; |
225 | struct device_node *np = pdev->dev.of_node; | 225 | struct device_node *np = pdev->dev.of_node; |
226 | u32 bus_width; | ||
226 | 227 | ||
227 | if (!np) | 228 | if (!np) |
228 | return NULL; | 229 | return NULL; |
@@ -236,7 +237,9 @@ static struct tegra_sdhci_platform_data * __devinit sdhci_tegra_dt_parse_pdata( | |||
236 | plat->cd_gpio = of_get_named_gpio(np, "cd-gpios", 0); | 237 | plat->cd_gpio = of_get_named_gpio(np, "cd-gpios", 0); |
237 | plat->wp_gpio = of_get_named_gpio(np, "wp-gpios", 0); | 238 | plat->wp_gpio = of_get_named_gpio(np, "wp-gpios", 0); |
238 | plat->power_gpio = of_get_named_gpio(np, "power-gpios", 0); | 239 | plat->power_gpio = of_get_named_gpio(np, "power-gpios", 0); |
239 | if (of_find_property(np, "support-8bit", NULL)) | 240 | |
241 | if (of_property_read_u32(np, "bus-width", &bus_width) == 0 && | ||
242 | bus_width == 8) | ||
240 | plat->is_8bit = 1; | 243 | plat->is_8bit = 1; |
241 | 244 | ||
242 | return plat; | 245 | return plat; |