summaryrefslogtreecommitdiff
path: root/drivers/sbus/char/bbc_i2c.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-03-18 00:23:56 +0300
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 12:16:34 +0300
commitb5e7ae5dd034c2c0ed75c31fca04a805097817bc (patch)
tree5dc785f198f08502d99fa95dd0714b319f51e1c5 /drivers/sbus/char/bbc_i2c.c
parent7a1ac5264108fc3ed22d17a3cdd76212ed1666d1 (diff)
downloadlinux-b5e7ae5dd034c2c0ed75c31fca04a805097817bc.tar.xz
[SPARC64] bbc_i2c: Fix cpu check and add missing module license.
Should allow cheetah_plus cpu types and don't taint the kernel. Signed-off-by: David S. Miller <davem@davemloft.net>
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)
struct linux_ebus_device *edev = NULL;
int err, index = 0;
- if (tlb_type != cheetah || !bbc_present())
+ if ((tlb_type != cheetah && tlb_type != cheetah_plus) ||
+ !bbc_present())
return -ENODEV;
for_each_ebus(ebus) {
@@ -486,3 +487,4 @@ static void bbc_i2c_cleanup(void)
module_init(bbc_i2c_init);
module_exit(bbc_i2c_cleanup);
+MODULE_LICENSE("GPL");