aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/iseries/setup.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2006-04-27 03:21:46 -0400
committerPaul Mackerras <paulus@samba.org>2006-04-29 04:02:01 -0400
commitdd721ffd95d5e1516380da0b254ef737582a258f (patch)
treefc31c2124b0de8b301622d755e444e4d5acb95b1 /arch/powerpc/platforms/iseries/setup.c
parente10fa77368dff31140451fac04d78d9f51f0f3ac (diff)
[PATCH] powerpc: use a common vio_match_device routine
This requires the compatible properties having vaules that are empty strings instead of just being empty properties. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/iseries/setup.c')
-rw-r--r--arch/powerpc/platforms/iseries/setup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c
index 901acbcc0888..befd36af7e32 100644
--- a/arch/powerpc/platforms/iseries/setup.c
+++ b/arch/powerpc/platforms/iseries/setup.c
@@ -927,7 +927,7 @@ void dt_vdevices(struct iseries_flat_dt *dt)
927 snprintf(buf, sizeof(buf), "viocons@%08x", reg); 927 snprintf(buf, sizeof(buf), "viocons@%08x", reg);
928 dt_start_node(dt, buf); 928 dt_start_node(dt, buf);
929 dt_prop_str(dt, "device_type", "serial"); 929 dt_prop_str(dt, "device_type", "serial");
930 dt_prop_empty(dt, "compatible"); 930 dt_prop_str(dt, "compatible", "");
931 dt_prop_u32(dt, "reg", reg); 931 dt_prop_u32(dt, "reg", reg);
932 dt_end_node(dt); 932 dt_end_node(dt);
933 reg++; 933 reg++;
@@ -949,7 +949,7 @@ void dt_vdevices(struct iseries_flat_dt *dt)
949 snprintf(buf, 32, "vlan@%08x", reg + i); 949 snprintf(buf, 32, "vlan@%08x", reg + i);
950 dt_start_node(dt, buf); 950 dt_start_node(dt, buf);
951 dt_prop_str(dt, "device_type", "vlan"); 951 dt_prop_str(dt, "device_type", "vlan");
952 dt_prop_empty(dt, "compatible"); 952 dt_prop_str(dt, "compatible", "");
953 dt_prop_u32(dt, "reg", reg + i); 953 dt_prop_u32(dt, "reg", reg + i);
954 dt_prop_u32(dt, "linux,unit_address", i); 954 dt_prop_u32(dt, "linux,unit_address", i);
955 955
@@ -970,7 +970,7 @@ void dt_vdevices(struct iseries_flat_dt *dt)
970 snprintf(buf, 32, "viodasd@%08x", reg + i); 970 snprintf(buf, 32, "viodasd@%08x", reg + i);
971 dt_start_node(dt, buf); 971 dt_start_node(dt, buf);
972 dt_prop_str(dt, "device_type", "viodasd"); 972 dt_prop_str(dt, "device_type", "viodasd");
973 dt_prop_empty(dt, "compatible"); 973 dt_prop_str(dt, "compatible", "");
974 dt_prop_u32(dt, "reg", reg + i); 974 dt_prop_u32(dt, "reg", reg + i);
975 dt_prop_u32(dt, "linux,unit_address", i); 975 dt_prop_u32(dt, "linux,unit_address", i);
976 dt_end_node(dt); 976 dt_end_node(dt);
@@ -980,7 +980,7 @@ void dt_vdevices(struct iseries_flat_dt *dt)
980 snprintf(buf, 32, "viocd@%08x", reg + i); 980 snprintf(buf, 32, "viocd@%08x", reg + i);
981 dt_start_node(dt, buf); 981 dt_start_node(dt, buf);
982 dt_prop_str(dt, "device_type", "viocd"); 982 dt_prop_str(dt, "device_type", "viocd");
983 dt_prop_empty(dt, "compatible"); 983 dt_prop_str(dt, "compatible", "");
984 dt_prop_u32(dt, "reg", reg + i); 984 dt_prop_u32(dt, "reg", reg + i);
985 dt_prop_u32(dt, "linux,unit_address", i); 985 dt_prop_u32(dt, "linux,unit_address", i);
986 dt_end_node(dt); 986 dt_end_node(dt);
@@ -990,7 +990,7 @@ void dt_vdevices(struct iseries_flat_dt *dt)
990 snprintf(buf, 32, "viotape@%08x", reg + i); 990 snprintf(buf, 32, "viotape@%08x", reg + i);
991 dt_start_node(dt, buf); 991 dt_start_node(dt, buf);
992 dt_prop_str(dt, "device_type", "viotape"); 992 dt_prop_str(dt, "device_type", "viotape");
993 dt_prop_empty(dt, "compatible"); 993 dt_prop_str(dt, "compatible", "");
994 dt_prop_u32(dt, "reg", reg + i); 994 dt_prop_u32(dt, "reg", reg + i);
995 dt_prop_u32(dt, "linux,unit_address", i); 995 dt_prop_u32(dt, "linux,unit_address", i);
996 dt_end_node(dt); 996 dt_end_node(dt);