summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/hwmon/ibmpowernv.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/hwmon/ibmpowernv.c')
-rw-r--r--kernel/drivers/hwmon/ibmpowernv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/drivers/hwmon/ibmpowernv.c b/kernel/drivers/hwmon/ibmpowernv.c
index 4255514b2..55b5a8ff1 100644
--- a/kernel/drivers/hwmon/ibmpowernv.c
+++ b/kernel/drivers/hwmon/ibmpowernv.c
@@ -474,11 +474,18 @@ static const struct platform_device_id opal_sensor_driver_ids[] = {
};
MODULE_DEVICE_TABLE(platform, opal_sensor_driver_ids);
+static const struct of_device_id opal_sensor_match[] = {
+ { .compatible = "ibm,opal-sensor" },
+ { },
+};
+MODULE_DEVICE_TABLE(of, opal_sensor_match);
+
static struct platform_driver ibmpowernv_driver = {
.probe = ibmpowernv_probe,
.id_table = opal_sensor_driver_ids,
.driver = {
.name = DRVNAME,
+ .of_match_table = opal_sensor_match,
},
};