gpu: drm: vc4: simplify getting .drvdata
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 19 Apr 2018 14:05:46 +0000 (16:05 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 23 Apr 2018 17:50:05 +0000 (10:50 -0700)
commit9f900de31dcc14b3c5765a383ef52b9efba7f542
tree74bc2e9c63096fad7d2364b5d8796dffce7e0fb8
parent044c59890559928225aeb7bc844a254d01689828
gpu: drm: vc4: simplify getting .drvdata

We should get drvdata 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: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180419140641.27926-17-wsa+renesas@sang-engineering.com
drivers/gpu/drm/vc4/vc4_drv.c