]> git.openfabrics.org - ~emulex/infiniband.git/commit
net: xilinx_emaclite: use platform_{get,set}_drvdata()
authorLibo Chen <clbchenlibo.chen@huawei.com>
Mon, 19 Aug 2013 12:00:25 +0000 (20:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 00:18:02 +0000 (17:18 -0700)
commit34e0184d98bd3a0e19b1d55bfdbd2186bfe5eca4
tree6ac424db0173a3dbf2ea5f6fc9ad7a25f440f1e3
parent511c4e00f8fa5f7d20baabda8b9504af71b88a49
net: xilinx_emaclite: use platform_{get,set}_drvdata()

Use the wrapper functions for getting and setting the driver data using
platform_device instead of using dev_{get,set}_drvdata() with &of_dev->dev,
so we can directly pass a struct platform_device.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Acked-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c