All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] dw9807 driver fix, dw9714 cleanup
@ 2018-10-05 21:26 Sakari Ailus
  2018-10-05 21:26 ` [PATCH 1/2] dw9714: Remove useless error message Sakari Ailus
  2018-10-05 21:26 ` [PATCH 2/2] dw9807-vcm: Fix probe error handling Sakari Ailus
  0 siblings, 2 replies; 3+ messages in thread
From: Sakari Ailus @ 2018-10-05 21:26 UTC (permalink / raw)
  To: linux-media; +Cc: rajmohan.mani

Hi Raj, others,

One fix and one cleanup for the dw9807 and dw9714 drivers. The dw9807
driver had the same issue than what you fixed in dw9714.

Sakari Ailus (2):
  dw9714: Remove useless error message
  dw9807: Fix probe error handling

 drivers/media/i2c/dw9714.c     | 2 +-
 drivers/media/i2c/dw9807-vcm.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] dw9714: Remove useless error message
  2018-10-05 21:26 [PATCH 0/2] dw9807 driver fix, dw9714 cleanup Sakari Ailus
@ 2018-10-05 21:26 ` Sakari Ailus
  2018-10-05 21:26 ` [PATCH 2/2] dw9807-vcm: Fix probe error handling Sakari Ailus
  1 sibling, 0 replies; 3+ messages in thread
From: Sakari Ailus @ 2018-10-05 21:26 UTC (permalink / raw)
  To: linux-media; +Cc: rajmohan.mani

If probe fails, the kernel will print the error code. There's no need to
driver to do that.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 drivers/media/i2c/dw9714.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/dw9714.c b/drivers/media/i2c/dw9714.c
index 3dc2100470a1..26d83693a681 100644
--- a/drivers/media/i2c/dw9714.c
+++ b/drivers/media/i2c/dw9714.c
@@ -171,7 +171,7 @@ static int dw9714_probe(struct i2c_client *client)
 err_cleanup:
 	v4l2_ctrl_handler_free(&dw9714_dev->ctrls_vcm);
 	media_entity_cleanup(&dw9714_dev->sd.entity);
-	dev_err(&client->dev, "Probe failed: %d\n", rval);
+
 	return rval;
 }
 
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] dw9807-vcm: Fix probe error handling
  2018-10-05 21:26 [PATCH 0/2] dw9807 driver fix, dw9714 cleanup Sakari Ailus
  2018-10-05 21:26 ` [PATCH 1/2] dw9714: Remove useless error message Sakari Ailus
@ 2018-10-05 21:26 ` Sakari Ailus
  1 sibling, 0 replies; 3+ messages in thread
From: Sakari Ailus @ 2018-10-05 21:26 UTC (permalink / raw)
  To: linux-media; +Cc: rajmohan.mani

v4l2_async_unregister_subdev() may not be called without
v4l2_async_register_subdev() being called first. Fix this.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 drivers/media/i2c/dw9807-vcm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/i2c/dw9807-vcm.c b/drivers/media/i2c/dw9807-vcm.c
index a532c57dc636..73b0e10dc591 100644
--- a/drivers/media/i2c/dw9807-vcm.c
+++ b/drivers/media/i2c/dw9807-vcm.c
@@ -218,7 +218,8 @@ static int dw9807_probe(struct i2c_client *client)
 	return 0;
 
 err_cleanup:
-	dw9807_subdev_cleanup(dw9807_dev);
+	v4l2_ctrl_handler_free(&dw9807_dev->ctrls_vcm);
+	media_entity_cleanup(&dw9807_dev->sd.entity);
 
 	return rval;
 }
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-06  4:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-05 21:26 [PATCH 0/2] dw9807 driver fix, dw9714 cleanup Sakari Ailus
2018-10-05 21:26 ` [PATCH 1/2] dw9714: Remove useless error message Sakari Ailus
2018-10-05 21:26 ` [PATCH 2/2] dw9807-vcm: Fix probe error handling Sakari Ailus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.