Message ID | AANLkTin61iqrD0Jbax+cvQ1wxD8b=c4KJv7pBSvU7kbv@mail.gmail.com |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
On Fri, Jan 14, 2011 at 10:09 AM, Anca Emanuel <anca.emanuel@gmail.com> wrote: > drivers/net/cassini.c: In function ‘cas_get_vpd_info’: > drivers/net/cassini.c:3358: error: implicit declaration of function > ‘of_get_property’ > drivers/net/cassini.c:3358: warning: assignment makes pointer from > integer without a cast > drivers/net/cassini.c: In function ‘cas_init_one’: > drivers/net/cassini.c:5035: error: implicit declaration of function > ‘pci_device_to_OF_node’ > drivers/net/cassini.c:5035: warning: assignment makes pointer from > integer without a cast > make[3]: *** [drivers/net/cassini.o] Error 1 > make[2]: *** [drivers/net] Error 2 > > > The first part can be solved with: > > diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c > index 7206ab2..fe3795e 100644 > --- a/drivers/net/cassini.c > +++ b/drivers/net/cassini.c > @@ -94,6 +94,7 @@ > #include <linux/tcp.h> > #include <linux/mutex.h> > #include <linux/firmware.h> > +#include <linux/of.h> > > #include <net/checksum.h> > The second part it's a little bit harder, because: http://lxr.linux.no/linux+v2.6.37/+search=pci_device_to_OF_node there is no generic function, only microblaze, powerpc and sparc are there as users. Still not solved in git11. I'm testing this from x86, Ubuntu 10.10 standard config. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index 7206ab2..fe3795e 100644 --- a/drivers/net/cassini.c +++ b/drivers/net/cassini.c @@ -94,6 +94,7 @@ #include <linux/tcp.h> #include <linux/mutex.h> #include <linux/firmware.h> +#include <linux/of.h> #include <net/checksum.h> -- To unsubscribe from this list: send the line "unsubscribe netdev" in