diff options
author | Cédric Le Goater <clg@fr.ibm.com> | 2015-09-23 14:44:48 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-10-14 07:57:14 -0700 |
commit | 0b056b29f28e45adaf756e579c1bf291584a87cd (patch) | |
tree | c46324b9cb1b241cf4d8f254e4931f3a7b09c156 /drivers/hwmon | |
parent | 47e4b5e152dd78476ed28ddeca3fd1ffe00cc3be (diff) | |
download | linux-0b056b29f28e45adaf756e579c1bf291584a87cd.tar.bz2 |
hwmon: (ibmpowernv) Add OF compatibility table entry
Fix module autoload for IBM and Open power platforms.
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/ibmpowernv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c index 4255514b2c72..55b5a8ff1cfe 100644 --- a/drivers/hwmon/ibmpowernv.c +++ b/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, }, }; |