]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.suse/suse-ppc32-mol-sheep
Add a patch to fix Intel E100 wake-on-lan problems.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.suse / suse-ppc32-mol-sheep
1 Subject: mol build fix
2 From: schwab@suse.de
3
4 ---
5 drivers/macintosh/mol/sheep.c | 4 ++--
6 1 file changed, 2 insertions(+), 2 deletions(-)
7
8 --- a/drivers/macintosh/mol/sheep.c
9 +++ b/drivers/macintosh/mol/sheep.c
10 @@ -82,7 +82,7 @@ struct SheepVars {
11 #ifdef LINUX_26
12
13 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12))
14 -#define compat_sk_alloc(a,b,c) sk_alloc( (a), (b), &mol_proto, 1 )
15 +#define compat_sk_alloc(a,b,c) sk_alloc(&init_net, (a), (b), &mol_proto)
16 #else
17 #define compat_sk_alloc(a,b,c) sk_alloc( (a), (b), (c), NULL )
18 #endif
19 @@ -558,7 +558,7 @@ sheep_net_ioctl( struct inode *inode, st
20 name[19] = 0;
21
22 // Find card
23 - if( !(v->ether=dev_get_by_name(name)) )
24 + if( !(v->ether=dev_get_by_name(&init_net, name)) )
25 return -ENODEV;
26
27 // Is it Ethernet?