gpu: host1x: Use of_device_get_match_data()
authorThierry Reding <treding@nvidia.com>
Mon, 21 Aug 2017 16:08:42 +0000 (18:08 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Oct 2017 12:19:50 +0000 (14:19 +0200)
commit6a341fdff16e13ed1d60dbedca027df3a6a15f9b
tree7c9d847e1656710cc69bc73e559a38ca88a8fe03
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
gpu: host1x: Use of_device_get_match_data()

Avoid some boilerplate by calling of_device_get_match_data() instead of
open-coding the equivalent in the driver.

While at it, shuffle around some code to avoid unnecessary local
variables.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.c