Skip to contentSkip to conversation

staging: media: atomisp: Removed a function entry log

PATCH In review Martiros Shakhzadyan 3 participants 4 messages Apr 12, 2021 – Apr 13, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: media: atomisp: Removed a function entry log

Removed a function entry log in ov2722_remove, as ftrace is a preferred method for function entry/exit tracing.

---
 drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c +0 -2
index c017e9066b7a..912eadaffc44 100644
@@ -1175,8 +1175,6 @@ static int ov2722_remove(struct i2c_client *client)
 	struct v4l2_subdev *sd = i2c_get_clientdata(client);
 	struct ov2722_device *dev = to_ov2722_sensor(sd);
 
-	dev_dbg(&client->dev, "ov2722_remove...\n");
-
 	dev->platform_data->csi_cfg(sd, 0);
 	v4l2_ctrl_handler_free(&dev->ctrl_handler);
 	v4l2_device_unregister_subdev(sd);
Signature · 1 line
2.31.1
#2 lore raw
In reply to Martiros Shakhzadyan
Quoted 2 lines · Martiros Shakhzadyan

Removed a function entry log in ov2722_remove, as ftrace is a preferred method for function entry/exit tracing.

It turns out that someone else already made the same fix [1], so marking this patch as obsolete.

There are quite a few atomisp patches pending for 5.13, so it might be a good idea to checkout the media subsystem master tree since that is more recent than mainline.

https://git.linuxtv.org/media_tree.git/

Regards,

Hans

[1]:
https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/

Quoted 20 lines
---
 drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c +0 -2
index c017e9066b7a..912eadaffc44 100644
@@ -1175,8 +1175,6 @@ static int ov2722_remove(struct i2c_client *client)
 	struct v4l2_subdev *sd = i2c_get_clientdata(client);
 	struct ov2722_device *dev = to_ov2722_sensor(sd);
 
-	dev_dbg(&client->dev, "ov2722_remove...\n");
-
 	dev->platform_data->csi_cfg(sd, 0);
 	v4l2_ctrl_handler_free(&dev->ctrl_handler);
 	v4l2_device_unregister_subdev(sd);
#3 lore raw
Quoted 11 lines · Hans Verkuil
Quoted 2 lines · Martiros Shakhzadyan

Removed a function entry log in ov2722_remove, as ftrace is a preferred method for function entry/exit tracing.

It turns out that someone else already made the same fix [1], so marking this patch as obsolete.

There are quite a few atomisp patches pending for 5.13, so it might be a good idea to checkout the media subsystem master tree since that is more recent than mainline.

Quoted 9 lines

https://git.linuxtv.org/media_tree.git/

Regards,

Hans

[1]:
https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/

Noted. I will continue to work off of that repo - Thanks!

Quoted 21 lines
Quoted 20 lines
---
 drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c +0 -2
index c017e9066b7a..912eadaffc44 100644
@@ -1175,8 +1175,6 @@ static int ov2722_remove(struct i2c_client *client)
 	struct v4l2_subdev *sd = i2c_get_clientdata(client);
 	struct ov2722_device *dev = to_ov2722_sensor(sd);
 
-	dev_dbg(&client->dev, "ov2722_remove...\n");
-
 	dev->platform_data->csi_cfg(sd, 0);
 	v4l2_ctrl_handler_free(&dev->ctrl_handler);
 	v4l2_device_unregister_subdev(sd);