summaryrefslogtreecommitdiff
path: root/drivers/net/dnet.c
diff options
context:
space:
mode:
authorJamie Iles <jamie@jamieiles.com>2011-02-28 04:05:25 (GMT)
committerDavid S. Miller <davem@davemloft.net>2011-02-28 20:22:20 (GMT)
commit915239472a5015c7667025551a73e11d6e2abee0 (patch)
tree49ca698d25d15e9c9282a108661435827c5815fe /drivers/net/dnet.c
parentb44d211e166b4b0dae8ce379f9d2e3ac164b5b60 (diff)
downloadlinux-fsl-qoriq-915239472a5015c7667025551a73e11d6e2abee0.tar.xz
macb: don't use platform_set_drvdata() on a net_device
Commit 71d6429 (Driver core: convert platform_{get,set}_drvdata to static inline functions) now triggers a warning in the macb network driver: CC drivers/net/macb.o drivers/net/macb.c: In function ‘macb_mii_init’: drivers/net/macb.c:263: warning: passing argument 1 of ‘platform_set_drvdata’ from incompatible pointer type include/linux/platform_device.h:138: note: expected ‘struct platform_device *’ but argument is of type ‘struct net_device *’ Use dev_set_drvdata() on the device embedded in the net_device instead. Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Jamie Iles <jamie@jamieiles.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dnet.c')
0 files changed, 0 insertions, 0 deletions