Are you sure this is correct? It shouldn't be needed.
> and
>
> #ifdef HAVE_NETDEV_PRIV
> drv = *(tiwlan_net_dev_t **)netdev_priv(dev);
> #else
> drv = (tiwlan_net_dev_t *)dev->priv;
> #endif
You don't need the #ifdef, the changes you are making will also work on older
kernel versions.
Also, you don't need the cast.
> and getting stuff to build,but I'm wondering how the Google developers
> plan to handle this.
> One approach would be to actually store the private information in the
> netdev struct, which appears to be the desired practice.
Yes, that should be the way to do this.
What really needs to happen is this driver get merged into mainline and these
changes will be done for you.
If I get bored, I'll just dump the driver into the staging tree, but it should
be done by the original developers, and not rely on me to do it...
thanks,
greg k-h
Greg - please don't bother wasting your time if you're bored :). Bob Copeland (from the wireless folks) and I are working on moving to the wl12xx driver which is currently in wireless-testing.
Thanks :)
San (from my Dream)
On Jun 7, 2009 10:41 AM, "Greg KH" <gre...@gmail.com> wrote:On Sun, Jun 7, 2009 at 7:47 AM, Jim Bray<jimsa...@gmail.com> wrote: > > I've been trying to buil...
Are you sure this is correct? It shouldn't be needed.
> and > > #ifdef HAVE_NETDEV_PRIV > drv = *(tiwlan_net_dev_t **)netdev_priv(dev); > #else > drv =...
You don't need the #ifdef, the changes you are making will also work on older
kernel versions.
Also, you don't need the cast.
> and getting stuff to build,but I'm wondering how the Google developers > plan to handle this. > O...
Yes, that should be the way to do this.
What really needs to happen is this driver get merged into mainline and these
changes will be done for you.
If I get bored, I'll just dump the driver into the staging tree, but it should
be done by the original developers, and not rely on me to do it...
thanks,
greg k-h
--~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-kernel+unsubscribe@googl...