]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
[media] smiapp: The sensor only needs a single clock, name may be NULL
authorSakari Ailus <sakari.ailus@iki.fi>
Mon, 27 Jan 2014 00:13:13 +0000 (21:13 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 13:33:05 +0000 (11:33 -0200)
The SMIA compatible sensors only need a single clock.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c

index 2c65ff3ed769945bfcad09de1c732ed0c5f300e5..3dd32b1761e47bb29a5d92151c2aa6e3892f0fdb 100644 (file)
@@ -2482,7 +2482,7 @@ static int smiapp_registered(struct v4l2_subdev *subdev)
        }
 
        if (!sensor->platform_data->set_xclk) {
-               sensor->ext_clk = devm_clk_get(&client->dev, "ext_clk");
+               sensor->ext_clk = devm_clk_get(&client->dev, NULL);
                if (IS_ERR(sensor->ext_clk)) {
                        dev_err(&client->dev, "could not get clock\n");
                        return PTR_ERR(sensor->ext_clk);