diff options
author | Stephen Warren <swarren@nvidia.com> | 2013-02-15 17:02:22 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2013-02-15 17:27:51 -0500 |
commit | 838bf09d4fa01d39417e42c731aa31d7a256fb7c (patch) | |
tree | 96c4444c920074cb1999186553ba087920b16033 /drivers/pwm | |
parent | 83cfd72669ff708c9d21f214606be785ea8a685c (diff) |
pwm: tegra: assume CONFIG_OF
Tegra only supports, and always enables, device tree. Remove all ifdefs
for DT support from the driver.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-tegra.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c index 30c0e2b70ce8..f7770312c1a9 100644 --- a/drivers/pwm/pwm-tegra.c +++ b/drivers/pwm/pwm-tegra.c | |||
@@ -233,7 +233,6 @@ static int tegra_pwm_remove(struct platform_device *pdev) | |||
233 | return pwmchip_remove(&pc->chip); | 233 | return pwmchip_remove(&pc->chip); |
234 | } | 234 | } |
235 | 235 | ||
236 | #ifdef CONFIG_OF | ||
237 | static struct of_device_id tegra_pwm_of_match[] = { | 236 | static struct of_device_id tegra_pwm_of_match[] = { |
238 | { .compatible = "nvidia,tegra20-pwm" }, | 237 | { .compatible = "nvidia,tegra20-pwm" }, |
239 | { .compatible = "nvidia,tegra30-pwm" }, | 238 | { .compatible = "nvidia,tegra30-pwm" }, |
@@ -241,12 +240,11 @@ static struct of_device_id tegra_pwm_of_match[] = { | |||
241 | }; | 240 | }; |
242 | 241 | ||
243 | MODULE_DEVICE_TABLE(of, tegra_pwm_of_match); | 242 | MODULE_DEVICE_TABLE(of, tegra_pwm_of_match); |
244 | #endif | ||
245 | 243 | ||
246 | static struct platform_driver tegra_pwm_driver = { | 244 | static struct platform_driver tegra_pwm_driver = { |
247 | .driver = { | 245 | .driver = { |
248 | .name = "tegra-pwm", | 246 | .name = "tegra-pwm", |
249 | .of_match_table = of_match_ptr(tegra_pwm_of_match), | 247 | .of_match_table = tegra_pwm_of_match, |
250 | }, | 248 | }, |
251 | .probe = tegra_pwm_probe, | 249 | .probe = tegra_pwm_probe, |
252 | .remove = tegra_pwm_remove, | 250 | .remove = tegra_pwm_remove, |