[Skiboot] [PATCH] sensor: add a compatible property

Cédric Le Goater clg at fr.ibm.com
Fri Sep 25 00:08:03 AEST 2015


OPAL needs an extra compatible property "ibm,opal-sensor" to make
module autoload work smoothly in Linux for ibmpowernv driver.

Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
---
 core/sensor.c |    1 +
 1 file changed, 1 insertion(+)

Index: skiboot.git/core/sensor.c
===================================================================
--- skiboot.git.orig/core/sensor.c
+++ skiboot.git/core/sensor.c
@@ -39,6 +39,7 @@ void sensor_init(void)
 {
 	sensor_node = dt_new(opal_node, "sensors");
 
+	dt_add_property_string(sensor_node, "compatible", "ibm,opal-sensor");
 	dts_sensor_create_nodes(sensor_node);
 
 	/* Register OPAL interface */



More information about the Skiboot mailing list