14
14
#include <linux/slab.h>
15
15
#include <linux/module.h>
16
16
#include <linux/err.h>
17
- #include <linux/of.h>
18
- #include <linux/of_device.h>
19
17
#include <linux/regmap.h>
20
18
#include <linux/hwmon.h>
21
19
46
44
47
45
#define ISL12022_BETA_TSE (1 << 7)
48
46
49
- static struct i2c_driver isl12022_driver ;
50
-
51
47
static umode_t isl12022_hwmon_is_visible (const void * data ,
52
48
enum hwmon_sensor_types type ,
53
49
u32 attr , int channel )
@@ -252,14 +248,12 @@ static int isl12022_probe(struct i2c_client *client)
252
248
return devm_rtc_register_device (rtc );
253
249
}
254
250
255
- #ifdef CONFIG_OF
256
251
static const struct of_device_id isl12022_dt_match [] = {
257
252
{ .compatible = "isl,isl12022" }, /* for backward compat., don't use */
258
253
{ .compatible = "isil,isl12022" },
259
254
{ },
260
255
};
261
256
MODULE_DEVICE_TABLE (of , isl12022_dt_match );
262
- #endif
263
257
264
258
static const struct i2c_device_id isl12022_id [] = {
265
259
{ "isl12022" , 0 },
@@ -270,9 +264,7 @@ MODULE_DEVICE_TABLE(i2c, isl12022_id);
270
264
static struct i2c_driver isl12022_driver = {
271
265
.driver = {
272
266
.name = "rtc-isl12022" ,
273
- #ifdef CONFIG_OF
274
- .of_match_table = of_match_ptr (isl12022_dt_match ),
275
- #endif
267
+ .of_match_table = isl12022_dt_match ,
276
268
},
277
269
.probe_new = isl12022_probe ,
278
270
.id_table = isl12022_id ,
0 commit comments