Skip to content

Commit 1de94b5

Browse files
committed
iio: light: cm3232: Add mod_devicetable.h include and drop of_match_ptr
Enables ACPI probing via PRP0001 and removes an example that might be cut and paste to a new driver. Signed-off-by: Jonathan Cameron <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]>
1 parent 9065b78 commit 1de94b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iio/light/cm3232.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <linux/i2c.h>
1212
#include <linux/module.h>
13+
#include <linux/mod_devicetable.h>
1314
#include <linux/iio/iio.h>
1415
#include <linux/iio/sysfs.h>
1516
#include <linux/init.h>
@@ -418,7 +419,7 @@ MODULE_DEVICE_TABLE(of, cm3232_of_match);
418419
static struct i2c_driver cm3232_driver = {
419420
.driver = {
420421
.name = "cm3232",
421-
.of_match_table = of_match_ptr(cm3232_of_match),
422+
.of_match_table = cm3232_of_match,
422423
#ifdef CONFIG_PM_SLEEP
423424
.pm = &cm3232_pm_ops,
424425
#endif

0 commit comments

Comments
 (0)