Register sysedp consumer with actual device name, not with generic
'ov5693' name. This allows more than one device to exists in the
system.
Bug
200007892
Change-Id: I2c85f3d1f483afb75df2b16a4d5808fdd8f3d9ad
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/415014
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
if (IS_ERR(info->regulators.avdd) || IS_ERR(info->regulators.dovdd))
return -EFAULT;
- info->sysedpc = sysedp_create_consumer("ov5693", "ov5693");
-
ov5693_sdata_init(info);
if (info->pdata->cfg & (NVC_CFG_NODEV | NVC_CFG_BOOT_INIT)) {
if (info->pdata->probe_clock) {
return -ENODEV;
}
+ info->sysedpc = sysedp_create_consumer("ov5693", info->devname);
+
dev_dbg(&client->dev, "ov5693 sensor driver loading done\n");
return 0;
}