]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: legacy: simplify getting .driver_data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 21 Oct 2018 20:01:05 +0000 (22:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 02:49:04 +0000 (19:49 -0700)
commit2af1ccd58107d65f87b747c90a965b2ba97b4feb
tree30e5407166282b1c4036c407f011f9890caab917
parentc0bfdae013e809b209ac325a9895b9ba22599c93
net: dsa: legacy: 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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/legacy.c