diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2018-01-04 15:40:03 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2018-02-12 18:30:56 +0300 |
commit | c09d7f7911aa35570b29674f72077e1342260970 (patch) | |
tree | 29a1119bcf23b67d17242afbcc8674965d00084e /drivers/gpu/drm/etnaviv | |
parent | f121e7d87e00d71ecf47630be2a6d95a82c1ea7a (diff) | |
download | linux-c09d7f7911aa35570b29674f72077e1342260970.tar.xz |
drm/etnaviv: don't fail to build on arches without PHYS_OFFSET
Some architecture ports like ARC don't provide the PHYS_OFFSET symbol.
Define it to 0 in that case, which is the most conservative default in
the usage context of the etnaviv driver.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 21d0d22f1168..dfac65585e1d 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -31,6 +31,10 @@ #include "state_hi.xml.h" #include "cmdstream.xml.h" +#ifndef PHYS_OFFSET +#define PHYS_OFFSET 0 +#endif + static const struct platform_device_id gpu_ids[] = { { .name = "etnaviv-gpu,2d" }, { }, |