Commit b5e7ae5dd034c2c0ed75c31fca04a805097817bc

Authored by David S. Miller
1 parent 7a1ac52641

[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>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

drivers/sbus/char/bbc_i2c.c
... ... @@ -440,7 +440,8 @@
440 440 struct linux_ebus_device *edev = NULL;
441 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 445 return -ENODEV;
445 446  
446 447 for_each_ebus(ebus) {
... ... @@ -486,4 +487,5 @@
486 487  
487 488 module_init(bbc_i2c_init);
488 489 module_exit(bbc_i2c_cleanup);
  490 +MODULE_LICENSE("GPL");