提交 ccec44cc 编写于 作者: S Sakari Ailus 提交者: Mauro Carvalho Chehab

[media] smiapp: Make clock control optional

The clock control is not explicitly controlled by the driver in two cases:
ACPI based systems and when the clock is part of the power sequence of the
camera module.
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 de10c161
...@@ -2892,7 +2892,10 @@ static int smiapp_probe(struct i2c_client *client, ...@@ -2892,7 +2892,10 @@ static int smiapp_probe(struct i2c_client *client,
} }
sensor->ext_clk = devm_clk_get(&client->dev, NULL); sensor->ext_clk = devm_clk_get(&client->dev, NULL);
if (IS_ERR(sensor->ext_clk)) { if (PTR_ERR(sensor->ext_clk) == -ENOENT) {
dev_info(&client->dev, "no clock defined, continuing...\n");
sensor->ext_clk = NULL;
} else if (IS_ERR(sensor->ext_clk)) {
dev_err(&client->dev, "could not get clock (%ld)\n", dev_err(&client->dev, "could not get clock (%ld)\n",
PTR_ERR(sensor->ext_clk)); PTR_ERR(sensor->ext_clk));
return -EPROBE_DEFER; return -EPROBE_DEFER;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册