diff options
author | Andrew F. Davis <afd@ti.com> | 2016-05-01 23:36:52 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-05-04 12:59:04 +0300 |
commit | daffd7a75c7e878845ddae8e16d9dc76eea7e2d2 (patch) | |
tree | 96818ffe8d03e741e4c7ec5daf9d4fc7d159f045 /drivers/iio/health/afe4403.c | |
parent | f59e6b5ae0a9dd94ac9a3d5d95f8650649343dc3 (diff) | |
download | linux-daffd7a75c7e878845ddae8e16d9dc76eea7e2d2.tar.xz |
iio: health/afe440x: Remove of_match_ptr and ifdefs
The drivers DT tables are not built-in when OF is not enabled, this does
not save us enough to justify ugly ifdefs. Clean this up.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/health/afe4403.c')
-rw-r--r-- | drivers/iio/health/afe4403.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/health/afe4403.c b/drivers/iio/health/afe4403.c index 209411332665..e3700cfec23d 100644 --- a/drivers/iio/health/afe4403.c +++ b/drivers/iio/health/afe4403.c @@ -498,13 +498,11 @@ static const struct regmap_config afe4403_regmap_config = { .volatile_table = &afe4403_volatile_table, }; -#ifdef CONFIG_OF static const struct of_device_id afe4403_of_match[] = { { .compatible = "ti,afe4403", }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, afe4403_of_match); -#endif static int __maybe_unused afe4403_suspend(struct device *dev) { @@ -694,7 +692,7 @@ MODULE_DEVICE_TABLE(spi, afe4403_ids); static struct spi_driver afe4403_spi_driver = { .driver = { .name = AFE4403_DRIVER_NAME, - .of_match_table = of_match_ptr(afe4403_of_match), + .of_match_table = afe4403_of_match, .pm = &afe4403_pm_ops, }, .probe = afe4403_probe, |