X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmedia%2Fvideo%2Fdpc7146.c;h=d54244413805c92e59e52d46a806beaf1355d7b9;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=7fb4ae734b70ccdfad4be3ea8ee9e990ed332f21;hpb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;p=linux-2.6.git diff --git a/drivers/media/video/dpc7146.c b/drivers/media/video/dpc7146.c index 7fb4ae734..d54244413 100644 --- a/drivers/media/video/dpc7146.c +++ b/drivers/media/video/dpc7146.c @@ -91,7 +91,7 @@ struct dpc /* fixme: add vbi stuff here */ static int dpc_probe(struct saa7146_dev* dev) { - struct dpc* dpc = 0; + struct dpc* dpc = NULL; struct i2c_client *client; struct list_head *item; @@ -123,6 +123,7 @@ static int dpc_probe(struct saa7146_dev* dev) /* check if all devices are present */ if( 0 == dpc->saa7111a ) { DEB_D(("dpc_v4l2.o: dpc_attach failed for this device.\n")); + i2c_del_adapter(&dpc->i2c_adapter); kfree(dpc); return -ENODEV; }