|
@@ -2892,7 +2892,10 @@ static int smiapp_probe(struct i2c_client *client,
|
|
|
}
|
|
|
|
|
|
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",
|
|
|
PTR_ERR(sensor->ext_clk));
|
|
|
return -EPROBE_DEFER;
|