Skip to content

Commit

Permalink
drm/nv04-nv30/clk: provide an empty domain list
Browse files Browse the repository at this point in the history
Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Dec 3, 2013
1 parent d2c7ab3 commit 5b19f4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpu/drm/nouveau/core/subdev/clock/nv04.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ nv04_clock_pll_prog(struct nouveau_clock *clk, u32 reg1,
return 0;
}

static struct nouveau_clocks
nv04_domain[] = {
{ nv_clk_src_max }
};

static int
nv04_clock_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct nouveau_oclass *oclass, void *data, u32 size,
Expand All @@ -77,7 +82,7 @@ nv04_clock_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct nv04_clock_priv *priv;
int ret;

ret = nouveau_clock_create(parent, engine, oclass, NULL, &priv);
ret = nouveau_clock_create(parent, engine, oclass, nv04_domain, &priv);
*pobject = nv_object(priv);
if (ret)
return ret;
Expand Down

0 comments on commit 5b19f4f

Please sign in to comment.