Skip to contentSkip to conversation

powerpc: pmi probe device by device-type

PATCH In review Christian Krafft 2 participants 2 messages Apr 23, 2007 – Apr 24, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 powerpc: pmi probe device by device-type

From: Christian Krafft <[email protected]>
At the moment the pmi device driver is probing for devices with a given type and a given name. As there may be devices of the same type but with a different name, probing should be done also for device type only.

arch/powerpc/sysdev/pmi.c +1 -0
Index: sdk3/arch/powerpc/sysdev/pmi.c
===================================================================
@@ -103,6 +103,7 @@ out:
 
 static struct of_device_id pmi_match[] = {
 	{ .type = "ibm,pmi", .name = "ibm,pmi" },
+	{ .type = "ibm,pmi" },
 	{},
 };
 
Signature · 13 lines
Mit freundlichen Gruessen,
kind regards,

Christian Krafft
IBM Systems & Technology Group,
Linux Kernel Development
IT Specialist


Vorsitzender des Aufsichtsrats:	Johann Weihen
Geschaeftsfuehrung:		Herbert Kircher
Sitz der Gesellschaft:		Boeblingen
Registriergericht:		Amtsgericht Stuttgart, HRB 243294
Acked-by on v1 2/2
#1 lore raw
Quoted 42 lines · Christian Krafft

From: Christian Krafft <[email protected]>
At the moment the pmi device driver is probing for devices with a given type and a given name. As there may be devices of the same type but with a different name, probing should be done also for device type only.

Index: sdk3/arch/powerpc/sysdev/pmi.c
===================================================================

arch/powerpc/sysdev/pmi.c +1 -0
@@ -103,6 +103,7 @@ out:
 
 static struct of_device_id pmi_match[] = {
 	{ .type = "ibm,pmi", .name = "ibm,pmi" },
+	{ .type = "ibm,pmi" },
 	{},
 };
 
Signature · 19 lines
-- 
Mit freundlichen Gruessen,
kind regards,

Christian Krafft
IBM Systems & Technology Group,
Linux Kernel Development
IT Specialist


Vorsitzender des Aufsichtsrats:	Johann Weihen
Geschaeftsfuehrung:		Herbert Kircher
Sitz der Gesellschaft:		Boeblingen
Registriergericht:		Amtsgericht Stuttgart, HRB 243294

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev