]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ixp425-eth/files/mm4.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ixp425-eth / files / mm4.patch
1 # This corrects the type of dev_set_mac_address.  The definition (prototype)
2 # was *added* to include/linux/netdevice.h in the 2.6.11 mm patches, so the
3 # change should not harm older builds
4 --- ixp425-eth-1.1-r1/ixp425_eth.c.pre-mm4      2005-03-19 14:02:32.883601440 -0800
5 +++ ixp425-eth-1.1-r1/ixp425_eth.c      2005-03-19 14:03:25.849549392 -0800
6 @@ -2347,12 +2347,11 @@
7  }
8  
9  /* set port MAC addr and update the dev struct if successfull */
10 -int dev_set_mac_address(struct net_device *dev, void *addr)
11 +int dev_set_mac_address(struct net_device *dev, struct sockaddr *saddr)
12  {
13      int res;
14      priv_data_t *priv = dev->priv;
15      IxEthAccMacAddr npeMacAddr;
16 -    struct sockaddr *saddr = (struct sockaddr *)addr;
17  
18      /* Set MAC addr in h/w */
19      memcpy(&npeMacAddr.macAddress,