Lines Matching refs:devp
47 void *devp; in hotfoot_fixups() local
51 devp = finddevice("/plb/opb/serial@ef600300"); in hotfoot_fixups()
52 if (!devp) in hotfoot_fixups()
54 del_node(devp); in hotfoot_fixups()
56 devp = finddevice("/plb/opb/ethernet@ef600900"); in hotfoot_fixups()
57 if (!devp) in hotfoot_fixups()
59 del_node(devp); in hotfoot_fixups()
67 void *devp = finddevice("/plb/ebc/nor_flash@0"); in hotfoot_fixups() local
68 if (!devp) in hotfoot_fixups()
74 getprop(devp, "reg", regs, sizeof(regs)); in hotfoot_fixups()
78 setprop(devp, "reg", regs, sizeof(regs)); in hotfoot_fixups()
81 devp = finddevice("/plb/ebc/nor_flash@0/partition@0"); in hotfoot_fixups()
82 if (!devp) in hotfoot_fixups()
84 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
86 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
88 devp = finddevice("/plb/ebc/nor_flash@0/partition@1"); in hotfoot_fixups()
89 if (!devp) in hotfoot_fixups()
91 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
93 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
95 devp = finddevice("/plb/ebc/nor_flash@0/partition@2"); in hotfoot_fixups()
96 if (!devp) in hotfoot_fixups()
98 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
100 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
102 devp = finddevice("/plb/ebc/nor_flash@0/partition@3"); in hotfoot_fixups()
103 if (!devp) in hotfoot_fixups()
105 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
107 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
109 devp = finddevice("/plb/ebc/nor_flash@0/partition@4"); in hotfoot_fixups()
110 if (!devp) in hotfoot_fixups()
112 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
114 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
116 devp = finddevice("/plb/ebc/nor_flash@0/partition@6"); in hotfoot_fixups()
117 if (!devp) in hotfoot_fixups()
119 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
121 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
124 devp = finddevice("/plb/ebc/nor_flash@0/partition@5"); in hotfoot_fixups()
125 if (!devp) in hotfoot_fixups()
127 del_node(devp); in hotfoot_fixups()