net: macb: simplify getting .driver_data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 Mar 2019 16:36:34 +0000 (17:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Mar 2019 21:28:55 +0000 (14:28 -0700)
commitf9cb75970e7b61e7f0c14dacf709f830b6bf21e8
tree1be39e9e063a3e6f13557f13369e4207755ac8dc
parent64c40525849f4eb8e6c10b5bbba3c2a2e942bfa6
net: macb: simplify getting .driver_data

We should get 'driver_data' from 'struct device' directly. Going via
platform_device is an unneeded step back and forth.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c