bp->waiting = 0;
init_waitqueue_head(&bp->wq);
if (request_irq(edev->irqs[0], bbc_i2c_interrupt,
- IRQF_SHARED, "bbc_i2c", bp))
+ SA_SHIRQ, "bbc_i2c", bp))
goto fail;
bp->index = index;
for_each_ebus(ebus) {
for_each_ebusdev(edev, ebus) {
- if (!strcmp(edev->prom_node->name, "bbc"))
+ if (!strcmp(edev->prom_name, "bbc"))
return 1;
}
}
struct linux_ebus_device *edev = NULL;
int err, index = 0;
- if ((tlb_type != cheetah && tlb_type != cheetah_plus) ||
- !bbc_present())
+ if (tlb_type != cheetah || !bbc_present())
return -ENODEV;
for_each_ebus(ebus) {
for_each_ebusdev(edev, ebus) {
- if (!strcmp(edev->prom_node->name, "i2c")) {
+ if (!strcmp(edev->prom_name, "i2c")) {
if (!attach_one_i2c(edev, index))
index++;
}
module_init(bbc_i2c_init);
module_exit(bbc_i2c_cleanup);
-MODULE_LICENSE("GPL");