xtsonic: add missing platform_set_drvdata() in xtsonic_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 11 Nov 2013 06:17:17 +0000 (14:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Nov 2013 19:02:08 +0000 (14:02 -0500)
commit8724be0e4aa357ae9388dd6879aa6733900c6f21
tree0f897328d895ccb31e41068aa3c4af2b9cd9619f
parent06a2feb9e3bd0d2d555ccb19607ff5583cfa03e8
xtsonic: add missing platform_set_drvdata() in xtsonic_probe()

Add missing platform_set_drvdata() in xtsonic_probe(), otherwise
calling platform_get_drvdata() in xtsonic_device_remove() may
returns NULL.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/xtsonic.c