aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-adc-jack.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/extcon/extcon-adc-jack.c')
-rw-r--r--drivers/extcon/extcon-adc-jack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
index eda2a1aa4adb..d0233cd18ffa 100644
--- a/drivers/extcon/extcon-adc-jack.c
+++ b/drivers/extcon/extcon-adc-jack.c
@@ -135,8 +135,7 @@ static int adc_jack_probe(struct platform_device *pdev)
135 ; 135 ;
136 data->num_conditions = i; 136 data->num_conditions = i;
137 137
138 data->chan = iio_channel_get(dev_name(&pdev->dev), 138 data->chan = iio_channel_get(&pdev->dev, pdata->consumer_channel);
139 pdata->consumer_channel);
140 if (IS_ERR(data->chan)) { 139 if (IS_ERR(data->chan)) {
141 err = PTR_ERR(data->chan); 140 err = PTR_ERR(data->chan);
142 goto out; 141 goto out;