[PATCH 27/72] gpu: ipu-di: Move ipu pointer init
Steve Longerbeam
slongerbeam at gmail.com
Fri Oct 31 15:54:10 PDT 2014
Move the init of di->ipu pointer to near top of ipu_di_init().
Signed-off-by: Steve Longerbeam <steve_longerbeam at mentor.com>
---
drivers/gpu/ipu-v3/ipu-di.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/ipu-v3/ipu-di.c b/drivers/gpu/ipu-v3/ipu-di.c
index 5686969..70bf594 100644
--- a/drivers/gpu/ipu-v3/ipu-di.c
+++ b/drivers/gpu/ipu-v3/ipu-di.c
@@ -765,6 +765,7 @@ int ipu_di_init(struct ipu_soc *ipu, struct device *dev, int id,
if (IS_ERR(di->clk_di))
return PTR_ERR(di->clk_di);
+ di->ipu = ipu;
di->module = module;
di->id = id;
di->clk_ipu = clk_ipu;
@@ -777,7 +778,6 @@ int ipu_di_init(struct ipu_soc *ipu, struct device *dev, int id,
dev_dbg(dev, "DI%d base: 0x%08lx remapped to %p\n",
id, base, di->base);
di->inuse = false;
- di->ipu = ipu;
return 0;
}
--
1.7.9.5
More information about the dri-devel
mailing list