diff --git a/drivers/media/spi/gs1662.c b/drivers/media/spi/gs1662.c index 057530bf8528cf8335de7446a7d88c9fa861fca8..330dcb2b2e440a373ef2d1f9bc67fbde64b37be8 100644 --- a/drivers/media/spi/gs1662.c +++ b/drivers/media/spi/gs1662.c @@ -453,10 +453,9 @@ static int gs_probe(struct spi_device *spi) static int gs_remove(struct spi_device *spi) { struct v4l2_subdev *sd = spi_get_drvdata(spi); - struct gs *gs = to_gs(sd); v4l2_device_unregister_subdev(sd); - kfree(gs); + return 0; }