Lines Matching refs:devp

50 		void *devp;  in hotfoot_fixups()  local
54 devp = finddevice("/plb/opb/serial@ef600300"); in hotfoot_fixups()
55 if (!devp) in hotfoot_fixups()
57 del_node(devp); in hotfoot_fixups()
59 devp = finddevice("/plb/opb/ethernet@ef600900"); in hotfoot_fixups()
60 if (!devp) in hotfoot_fixups()
62 del_node(devp); in hotfoot_fixups()
70 void *devp = finddevice("/plb/ebc/nor_flash@0"); in hotfoot_fixups() local
71 if (!devp) in hotfoot_fixups()
77 getprop(devp, "reg", regs, sizeof(regs)); in hotfoot_fixups()
81 setprop(devp, "reg", regs, sizeof(regs)); in hotfoot_fixups()
84 devp = finddevice("/plb/ebc/nor_flash@0/partition@0"); in hotfoot_fixups()
85 if (!devp) in hotfoot_fixups()
87 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
89 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
91 devp = finddevice("/plb/ebc/nor_flash@0/partition@1"); in hotfoot_fixups()
92 if (!devp) in hotfoot_fixups()
94 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
96 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
98 devp = finddevice("/plb/ebc/nor_flash@0/partition@2"); in hotfoot_fixups()
99 if (!devp) in hotfoot_fixups()
101 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
103 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
105 devp = finddevice("/plb/ebc/nor_flash@0/partition@3"); in hotfoot_fixups()
106 if (!devp) in hotfoot_fixups()
108 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
110 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
112 devp = finddevice("/plb/ebc/nor_flash@0/partition@4"); in hotfoot_fixups()
113 if (!devp) in hotfoot_fixups()
115 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
117 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
119 devp = finddevice("/plb/ebc/nor_flash@0/partition@6"); in hotfoot_fixups()
120 if (!devp) in hotfoot_fixups()
122 getprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
124 setprop(devp, "reg", regs, 2*sizeof(u32)); in hotfoot_fixups()
127 devp = finddevice("/plb/ebc/nor_flash@0/partition@5"); in hotfoot_fixups()
128 if (!devp) in hotfoot_fixups()
130 del_node(devp); in hotfoot_fixups()