diff mbox

[1/1] si4713-i2c: Fix null pointer reference in probe

Message ID 1249897569-24203-1-git-send-email-eduardo.valentin@nokia.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Eduardo Valentin Aug. 10, 2009, 9:46 a.m. UTC
Remove reference to uninitialized v4l2_subdevice pointer
in fail path of probe function.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
---
 linux/drivers/media/radio/si4713-i2c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/linux/drivers/media/radio/si4713-i2c.c b/linux/drivers/media/radio/si4713-i2c.c
index 116555c..e45d236 100644
--- a/linux/drivers/media/radio/si4713-i2c.c
+++ b/linux/drivers/media/radio/si4713-i2c.c
@@ -1976,7 +1976,7 @@  static int si4713_probe(struct i2c_client *client,
 
 	sdev->platform_data = client->dev.platform_data;
 	if (!sdev->platform_data) {
-		v4l2_err(&sdev->sd, "No platform data registered.\n");
+		dev_err(&client->dev, "No platform data registered.\n");
 		rval = -ENODEV;
 		goto free_sdev;
 	}