gpu: host1x: Fix a few sparse warnings
authorThierry Reding <treding@nvidia.com>
Fri, 8 Nov 2013 12:20:23 +0000 (13:20 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 3 Dec 2013 09:06:29 +0000 (10:06 +0100)
commitd24b2898ceea603864c6d12540d6768edcc9cd40
tree3d5997d8c1fbae1c2a8e9ddb0fbf1ae6334d4d79
parent9ab34151a9aab94685a8ce4b030800151f2bca66
gpu: host1x: Fix a few sparse warnings

Include the bus.h header, so that various function declarations are
visible in the source file that implements those functions. This keeps
sparse from suggesting that they should be made static.

Make the host1x_bus_type variable static since it isn't used globally.

Finally replace the slightly unsafe dev_set_name(dev, name) by the more
secure dev_set_name(dev, "%s", name).

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