Loading arch/sparc/kernel/ebus.c +2 −0 Original line number Diff line number Diff line Loading @@ -156,6 +156,8 @@ void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_device *d dev->prom_node = dp; regs = of_get_property(dp, "reg", &len); if (!regs) len = 0; if (len % sizeof(struct linux_prom_registers)) { prom_printf("UGH: proplen for %s was %d, need multiple of %d\n", dev->prom_node->name, len, Loading arch/sparc64/kernel/ebus.c +4 −1 Original line number Diff line number Diff line Loading @@ -375,7 +375,10 @@ static void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_de dev->num_addrs = 0; dev->num_irqs = 0; } else { (void) of_get_property(dp, "reg", &len); const int *regs = of_get_property(dp, "reg", &len); if (!regs) len = 0; dev->num_addrs = len / sizeof(struct linux_prom_registers); for (i = 0; i < dev->num_addrs; i++) Loading Loading
arch/sparc/kernel/ebus.c +2 −0 Original line number Diff line number Diff line Loading @@ -156,6 +156,8 @@ void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_device *d dev->prom_node = dp; regs = of_get_property(dp, "reg", &len); if (!regs) len = 0; if (len % sizeof(struct linux_prom_registers)) { prom_printf("UGH: proplen for %s was %d, need multiple of %d\n", dev->prom_node->name, len, Loading
arch/sparc64/kernel/ebus.c +4 −1 Original line number Diff line number Diff line Loading @@ -375,7 +375,10 @@ static void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_de dev->num_addrs = 0; dev->num_irqs = 0; } else { (void) of_get_property(dp, "reg", &len); const int *regs = of_get_property(dp, "reg", &len); if (!regs) len = 0; dev->num_addrs = len / sizeof(struct linux_prom_registers); for (i = 0; i < dev->num_addrs; i++) Loading