net: hns: use to_platform_device()
authorGeliang Tang <geliangtang@163.com>
Sun, 27 Dec 2015 13:15:44 +0000 (21:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Dec 2015 20:32:25 +0000 (15:32 -0500)
commitda0bcb4e36411c1e9e327359c36507e2e04964a1
treeb12bc697d5cd54e42f97bb2122bbf345892aa7aa
parentbd0ed561356db935d0b5a68e2be32d976e6963c4
net: hns: use to_platform_device()

Use to_platform_device() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c