Skip to content

Commit

Permalink
[SPARC64] bbc_i2c: Fix cpu check and add missing module license.
Browse files Browse the repository at this point in the history
Should allow cheetah_plus cpu types and don't taint
the kernel.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 7a1ac52 commit b5e7ae5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/sbus/char/bbc_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -486,3 +487,4 @@ static void bbc_i2c_cleanup(void)

module_init(bbc_i2c_init);
module_exit(bbc_i2c_cleanup);
MODULE_LICENSE("GPL");

0 comments on commit b5e7ae5

Please sign in to comment.