|
@@ -936,10 +936,8 @@ static int ov9740_probe(struct i2c_client *client,
|
|
|
}
|
|
|
|
|
|
priv = devm_kzalloc(&client->dev, sizeof(struct ov9740_priv), GFP_KERNEL);
|
|
|
- if (!priv) {
|
|
|
- dev_err(&client->dev, "Failed to allocate private data!\n");
|
|
|
+ if (!priv)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
|
|
|
v4l2_i2c_subdev_init(&priv->subdev, client, &ov9740_subdev_ops);
|
|
|
v4l2_ctrl_handler_init(&priv->hdl, 13);
|