dm: core: Move regmap allocation into a separate function
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:58:21 +0000 (11:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
commita951431e827cfd862a4c095e85e8650a6b8370f7
tree7771446f5d52d71ac383bb6dabec4a38514f3be4
parent3949a413edb2c2be6ad930a5ba4b240bbca53d08
dm: core: Move regmap allocation into a separate function

We plan to add a new way of creating a regmap for of-platdata. Move the
allocation code into a separate function so that it can be shared.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/regmap.c