lkml.org 
[lkml]   [2010]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH -next] staging/cxt1e1: use netdev_priv to fix build
From
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;
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-04-30 20:23    [W:0.084 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site