projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47e4b5e
)
hwmon: (ibmpowernv) Add OF compatibility table entry
author
Cédric Le Goater
<
[email protected]
>
Wed, 23 Sep 2015 12:44:48 +0000
(14:44 +0200)
committer
Guenter Roeck
<
[email protected]
>
Wed, 14 Oct 2015 14:57:14 +0000
(07:57 -0700)
Fix module autoload for IBM and Open power platforms.
Signed-off-by: Cédric Le Goater <
[email protected]
>
Signed-off-by: Guenter Roeck <
[email protected]
>
drivers/hwmon/ibmpowernv.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/ibmpowernv.c
b/drivers/hwmon/ibmpowernv.c
index 4255514b2c72d917c2e2151f3d1fac405033e935..55b5a8ff1cfe2253c967e8fab4df33a44280a0fc 100644
(file)
--- 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,
},
};