]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82f615d393876d4c8735378432dac15978207609
tree74bc2e9c63096fad7d2364b5d8796dffce7e0fb8
parent838e7a5f25e331eac6a2c2ff67b97460f99fee11
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