Skip to contentSkip to conversation

iio: adc: viperboard: Drop platform_set_drvdata call

PATCH Applied Johannes Thumshirn 2 participants 2 messages Feb 1, 2014 – Feb 3, 2014 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: viperboard: Drop platform_set_drvdata call

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

---
 drivers/iio/adc/viperboard_adc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/iio/adc/viperboard_adc.c +0 -2
index d0add8f..9acf6b6 100644
@@ -139,8 +139,6 @@ static int vprbrd_adc_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	platform_set_drvdata(pdev, indio_dev);
-
 	return 0;
 }
 
Signature · 1 line
1.8.5.3
maintainer Applied
#1 lore raw
Quoted 4 lines · Johannes Thumshirn

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

Applied to the togreg branch of iio.git

Thanks,

Quoted 18 lines
---
  drivers/iio/adc/viperboard_adc.c | 2 --
  1 file changed, 2 deletions(-)
drivers/iio/adc/viperboard_adc.c +0 -2
index d0add8f..9acf6b6 100644
@@ -139,8 +139,6 @@ static int vprbrd_adc_probe(struct platform_device *pdev)
  		return ret;
  	}
 
-	platform_set_drvdata(pdev, indio_dev);
-
  	return 0;
  }