Sfoglia il codice sorgente

iio: adc: viperboard: Drop platform_set_drvdata call

Drop call to platform_set_drvdata as driver data is not used anywhere in the
driver

Signed-off-by: Johannes Thumshirn <morbidrsa@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Johannes Thumshirn 11 anni fa
parent
commit
97b6ee5253
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      drivers/iio/adc/viperboard_adc.c

+ 0 - 2
drivers/iio/adc/viperboard_adc.c

@@ -139,8 +139,6 @@ static int vprbrd_adc_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	platform_set_drvdata(pdev, indio_dev);
-
 	return 0;
 }