ptp: ptp_dte: simplify getting .driver_data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 21 Oct 2018 20:00:39 +0000 (22:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 02:48:35 +0000 (19:48 -0700)
commitc0bfdae013e809b209ac325a9895b9ba22599c93
tree769ca2cbf401dd2ae0f24bae9d921e321496f741
parent00f17a8219f02139119d8b4547e032bf4888fa0d
ptp: ptp_dte: 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>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_dte.c