]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
media: platform: tegra: ov5693: fix sysedp registration
authorTimo Alho <talho@nvidia.com>
Mon, 26 May 2014 13:45:05 +0000 (16:45 +0300)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 27 May 2014 10:38:30 +0000 (03:38 -0700)
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>
drivers/media/platform/tegra/ov5693.c

index 5cb51f399b6d632e21d5a9032fa43f72e7ac7b61..a92766b078381b00855af87af44ec2c0eabd0f2d 100644 (file)
@@ -3493,8 +3493,6 @@ static int ov5693_probe(
        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) {
@@ -3527,6 +3525,8 @@ static int ov5693_probe(
                return -ENODEV;
        }
 
+       info->sysedpc = sysedp_create_consumer("ov5693", info->devname);
+
        dev_dbg(&client->dev, "ov5693 sensor driver loading done\n");
        return 0;
 }