* [PATCH] Staging: cxt1e1: Fix build error
@ 2010-05-02 15:56 Javier Martinez Canillas
2010-05-03 18:49 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Javier Martinez Canillas @ 2010-05-02 15:56 UTC (permalink / raw)
To: Greg Kroah-Hartman, Bob Beers, devel, linux-kernel
With today linux-next I got this compilation error:
drivers/staging/cxt1e1/linux.c: In function ‘c4_add_dev’:
drivers/staging/cxt1e1/linux.c:1195: error: ‘struct net_device’ has no member named ‘priv’
I think this patch solves the issue
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
drivers/staging/cxt1e1/linux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c
index 23e184d..d8ef006 100644
--- a/drivers/staging/cxt1e1/linux.c
+++ b/drivers/staging/cxt1e1/linux.c
@@ -1192,7 +1192,7 @@ c4_add_dev (hdw_info_t * hi, int brdno, unsigned long f0, unsigned long f1,
hi->devname, irq1);
unregister_netdev (ndev);
free_irq (irq0, ndev);
- OS_kfree (ndev->priv);
+ OS_kfree(netdev_priv(ndev));
OS_kfree (ndev);
error_flag = EIO;
return 0;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Staging: cxt1e1: Fix build error
2010-05-02 15:56 [PATCH] Staging: cxt1e1: Fix build error Javier Martinez Canillas
@ 2010-05-03 18:49 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2010-05-03 18:49 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: Greg Kroah-Hartman, Bob Beers, devel, linux-kernel
On Sun, May 02, 2010 at 11:56:53AM -0400, Javier Martinez Canillas wrote:
> With today linux-next I got this compilation error:
>
> drivers/staging/cxt1e1/linux.c: In function ‘c4_add_dev’:
> drivers/staging/cxt1e1/linux.c:1195: error: ‘struct net_device’ has no member named ‘priv’
>
> I think this patch solves the issue
It does, but Randy Dunlap sent this fix in on Friday and I applied it
already :(
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-03 19:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-02 15:56 [PATCH] Staging: cxt1e1: Fix build error Javier Martinez Canillas
2010-05-03 18:49 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.