aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/bbc_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sbus/char/bbc_i2c.c')
-rw-r--r--drivers/sbus/char/bbc_i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c
index 1c8b612d8234..3e156e005f2e 100644
--- a/drivers/sbus/char/bbc_i2c.c
+++ b/drivers/sbus/char/bbc_i2c.c
@@ -440,7 +440,8 @@ static int __init bbc_i2c_init(void)
440 struct linux_ebus_device *edev = NULL; 440 struct linux_ebus_device *edev = NULL;
441 int err, index = 0; 441 int err, index = 0;
442 442
443 if (tlb_type != cheetah || !bbc_present()) 443 if ((tlb_type != cheetah && tlb_type != cheetah_plus) ||
444 !bbc_present())
444 return -ENODEV; 445 return -ENODEV;
445 446
446 for_each_ebus(ebus) { 447 for_each_ebus(ebus) {
@@ -486,3 +487,4 @@ static void bbc_i2c_cleanup(void)
486 487
487module_init(bbc_i2c_init); 488module_init(bbc_i2c_init);
488module_exit(bbc_i2c_cleanup); 489module_exit(bbc_i2c_cleanup);
490MODULE_LICENSE("GPL");