File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#include <linux/bitops.h>
13
13
#include <linux/bitfield.h>
14
+ #include <linux/mod_devicetable.h>
14
15
#include <linux/module.h>
15
16
#include <linux/init.h>
16
17
#include <linux/slab.h>
19
20
#include <linux/hwmon.h>
20
21
#include <linux/err.h>
21
22
#include <linux/mutex.h>
22
- #include <linux/of.h>
23
23
#include <linux/regmap.h>
24
24
25
25
/* Addresses to scan */
@@ -595,20 +595,18 @@ static const struct i2c_device_id jc42_id[] = {
595
595
};
596
596
MODULE_DEVICE_TABLE (i2c , jc42_id );
597
597
598
- #ifdef CONFIG_OF
599
598
static const struct of_device_id jc42_of_ids [] = {
600
599
{ .compatible = "jedec,jc-42.4-temp" , },
601
600
{ }
602
601
};
603
602
MODULE_DEVICE_TABLE (of , jc42_of_ids );
604
- #endif
605
603
606
604
static struct i2c_driver jc42_driver = {
607
605
.class = I2C_CLASS_HWMON ,
608
606
.driver = {
609
607
.name = "jc42" ,
610
608
.pm = JC42_DEV_PM_OPS ,
611
- .of_match_table = of_match_ptr ( jc42_of_ids ) ,
609
+ .of_match_table = jc42_of_ids ,
612
610
},
613
611
.probe = jc42_probe ,
614
612
.remove = jc42_remove ,
You can’t perform that action at this time.
0 commit comments