Commit c09d7f79 authored by Lucas Stach's avatar Lucas Stach

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: default avatarLucas Stach <l.stach@pengutronix.de>
parent f121e7d8
...@@ -31,6 +31,10 @@ ...@@ -31,6 +31,10 @@
#include "state_hi.xml.h" #include "state_hi.xml.h"
#include "cmdstream.xml.h" #include "cmdstream.xml.h"
#ifndef PHYS_OFFSET
#define PHYS_OFFSET 0
#endif
static const struct platform_device_id gpu_ids[] = { static const struct platform_device_id gpu_ids[] = {
{ .name = "etnaviv-gpu,2d" }, { .name = "etnaviv-gpu,2d" },
{ }, { },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment