/[linux-patches]/genpatches-2.6/trunk/2.6.16/1720_sparc-bbc-i2c.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.16/1720_sparc-bbc-i2c.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 469 - (show annotations) (download) (as text)
Wed May 17 15:22:31 2006 UTC (14 years, 5 months ago) by dsd
File MIME type: text/x-diff
File size: 1020 byte(s)
Fix bbc fan control on some sparc systems
1 From: David S. Miller <davem@sunset.davemloft.net>
2 Date: Fri, 17 Mar 2006 21:23:56 +0000 (-0800)
3 Subject: [SPARC64] bbc_i2c: Fix cpu check and add missing module license.
4 X-Git-Tag: v2.6.17-rc1
5 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b5e7ae5dd034c2c0ed75c31fca04a805097817bc
6
7 [SPARC64] bbc_i2c: Fix cpu check and add missing module license.
8
9 Should allow cheetah_plus cpu types and don't taint
10 the kernel.
11
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14
15 --- a/drivers/sbus/char/bbc_i2c.c
16 +++ b/drivers/sbus/char/bbc_i2c.c
17 @@ -440,7 +440,8 @@ static int __init bbc_i2c_init(void)
18 struct linux_ebus_device *edev = NULL;
19 int err, index = 0;
20
21 - if (tlb_type != cheetah || !bbc_present())
22 + if ((tlb_type != cheetah && tlb_type != cheetah_plus) ||
23 + !bbc_present())
24 return -ENODEV;
25
26 for_each_ebus(ebus) {
27 @@ -486,3 +487,4 @@ static void bbc_i2c_cleanup(void)
28
29 module_init(bbc_i2c_init);
30 module_exit(bbc_i2c_cleanup);
31 +MODULE_LICENSE("GPL");

  ViewVC Help
Powered by ViewVC 1.1.20