Skip to content

Commit

Permalink
[DRIVERS] i.MX I2C: Use vmm_devtree_request_regmap(), not vmm_devtree…
Browse files Browse the repository at this point in the history
…_regmap()

We use vmm_devtree_request_regmap() to make sure i2c register mapping is
visible to the resource managment.

Signed-off-by: Jimmy Durand Wesolowski <[email protected]>
  • Loading branch information
Jimmy Durand Wesolowski authored and avpatel committed Apr 9, 2015
1 parent 9f48ee5 commit 46dae38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 663,7 @@ static int i2c_imx_probe(struct vmm_device *dev,
return ret;
}

ret = vmm_devtree_regmap(dev->node, &base, 0);
ret = vmm_devtree_request_regmap(dev->node, &base, 0, "i.MX I2C");
if (VMM_OK != ret) {
vmm_printf("%s: can't get mapping\n", dev->name);
return ret;
Expand Down

0 comments on commit 46dae38

Please sign in to comment.