X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fsbus%2Fsbus.c;h=c5c0a91b3aae8017a4f03b9d6df26cdda5002497;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=87b18e6331aff4234785e9c5aeefabfea567b860;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/sbus/sbus.c b/drivers/sbus/sbus.c index 87b18e633..c5c0a91b3 100644 --- a/drivers/sbus/sbus.c +++ b/drivers/sbus/sbus.c @@ -192,7 +192,7 @@ static void __init sbus_do_child_siblings(int start_node, while((this_node = prom_getsibling(this_node)) != 0) { this_dev->next = kmalloc(sizeof(struct sbus_dev), GFP_ATOMIC); this_dev = this_dev->next; - this_dev->next = 0; + this_dev->next = NULL; this_dev->parent = parent; this_dev->bus = sbus; @@ -202,7 +202,7 @@ static void __init sbus_do_child_siblings(int start_node, this_dev->child = kmalloc(sizeof(struct sbus_dev), GFP_ATOMIC); this_dev->child->bus = sbus; - this_dev->child->next = 0; + this_dev->child->next = NULL; fill_sbus_device(prom_getchild(this_node), this_dev->child); sbus_do_child_siblings(prom_getchild(this_node), this_dev->child, this_dev, sbus); @@ -309,6 +309,10 @@ static void __init sbus_fixup_all_regs(struct sbus_dev *first_sdev) extern void register_proc_sparc_ioport(void); extern void firetruck_init(void); +#ifdef CONFIG_SUN4 +extern void sun4_dvma_init(void); +#endif + static int __init sbus_init(void) { int nd, this_sbus, sbus_devs, topnd, iommund; @@ -439,7 +443,7 @@ static int __init sbus_init(void) GFP_ATOMIC); /* Fill it */ this_dev->child->bus = sbus; - this_dev->child->next = 0; + this_dev->child->next = NULL; fill_sbus_device(prom_getchild(sbus_devs), this_dev->child); sbus_do_child_siblings(prom_getchild(sbus_devs), @@ -469,7 +473,7 @@ static int __init sbus_init(void) GFP_ATOMIC); /* Fill it */ this_dev->child->bus = sbus; - this_dev->child->next = 0; + this_dev->child->next = NULL; fill_sbus_device(prom_getchild(sbus_devs), this_dev->child); sbus_do_child_siblings(prom_getchild(sbus_devs),