public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH -next] staging/cxt1e1: use netdev_priv to fix build
@ 2010-04-30 17:07 Randy Dunlap
  2010-04-30 18:19 ` Bob Beers
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2010-04-30 17:07 UTC (permalink / raw)
  To: lkml; +Cc: linux-next, Bob Beers, gregkh

From: Randy Dunlap <randy.dunlap@oracle•com>

Fix cxt1e1 build error:
drivers/staging/cxt1e1/linux.c:1195: error: 'struct net_device' has no member named 'priv'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle•com>
Cc: Bob Beers <bob.beers@gmail•com>
---
 drivers/staging/cxt1e1/linux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20100430.orig/drivers/staging/cxt1e1/linux.c
+++ linux-next-20100430/drivers/staging/cxt1e1/linux.c
@@ -1192,7 +1192,7 @@ c4_add_dev (hdw_info_t * hi, int brdno, 
                 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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] staging/cxt1e1: use netdev_priv to fix build
  2010-04-30 17:07 [PATCH -next] staging/cxt1e1: use netdev_priv to fix build Randy Dunlap
@ 2010-04-30 18:19 ` Bob Beers
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Beers @ 2010-04-30 18:19 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: lkml, linux-next, gregkh

On Fri, Apr 30, 2010 at 1:07 PM, Randy Dunlap <randy.dunlap@oracle•com> wrote:
> From: Randy Dunlap <randy.dunlap@oracle•com>
>
> Fix cxt1e1 build error:
> drivers/staging/cxt1e1/linux.c:1195: error: 'struct net_device' has no member named 'priv'
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle•com>
> Cc: Bob Beers <bob.beers@gmail•com>

This is correct of course. If you need it ...

Acked-by: Bob Beers <bob.beers@gmail•com>

> ---
>  drivers/staging/cxt1e1/linux.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-next-20100430.orig/drivers/staging/cxt1e1/linux.c
> +++ linux-next-20100430/drivers/staging/cxt1e1/linux.c
> @@ -1192,7 +1192,7 @@ c4_add_dev (hdw_info_t * hi, int brdno,
>                 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;
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-30 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 17:07 [PATCH -next] staging/cxt1e1: use netdev_priv to fix build Randy Dunlap
2010-04-30 18:19 ` Bob Beers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox