Browse Source

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 năm trước cách đây
mục cha
commit
97b6ee5253
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  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;
 		return ret;
 	}
 	}
 
 
-	platform_set_drvdata(pdev, indio_dev);
-
 	return 0;
 	return 0;
 }
 }