iio:adc:bcm_iproc: Drop of_match_ptr protection and switch to mod_devicetable.h
This driver cannot be instantiated from ACPI due to it's use of syscon_regmap_lookup_by_phandle() but in the interests of clearing this anti pattern out of IIO, let us switch to an explicit check in Kconfig and remove the protections on the of_match_table The switch of header is because we only use of_device_id in here and that is defined in mod_devicetable.h not of.h. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
This commit is contained in:
parent
5dfb88af3d
commit
245d56d75e
@ -340,7 +340,7 @@ config AXP288_ADC
|
|||||||
|
|
||||||
config BCM_IPROC_ADC
|
config BCM_IPROC_ADC
|
||||||
tristate "Broadcom IPROC ADC driver"
|
tristate "Broadcom IPROC ADC driver"
|
||||||
depends on ARCH_BCM_IPROC || COMPILE_TEST
|
depends on (ARCH_BCM_IPROC && OF) || COMPILE_TEST
|
||||||
depends on MFD_SYSCON
|
depends on MFD_SYSCON
|
||||||
default ARCH_BCM_CYGNUS
|
default ARCH_BCM_CYGNUS
|
||||||
help
|
help
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/of.h>
|
#include <linux/mod_devicetable.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/mfd/syscon.h>
|
#include <linux/mfd/syscon.h>
|
||||||
@ -617,7 +617,7 @@ static struct platform_driver iproc_adc_driver = {
|
|||||||
.remove = iproc_adc_remove,
|
.remove = iproc_adc_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "iproc-static-adc",
|
.name = "iproc-static-adc",
|
||||||
.of_match_table = of_match_ptr(iproc_adc_of_match),
|
.of_match_table = iproc_adc_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
module_platform_driver(iproc_adc_driver);
|
module_platform_driver(iproc_adc_driver);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user