[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1352215711.3692.1.camel@phoenix>
Date: Tue, 06 Nov 2012 23:28:31 +0800
From: Axel Lin <axel.lin@...ics.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: Kyungmin Park <kyungmin.park@...sung.com>,
Thomas Abraham <thomas.abraham@...aro.org>,
Tomasz Figa <t.figa@...sung.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] pinctrl: samsung: Remove a redundant settting for
ctrldesc->npins
Set it once is enough.
Signed-off-by: Axel Lin <axel.lin@...ics.com>
---
drivers/pinctrl/pinctrl-samsung.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c
index fc34cac..1307283 100644
--- a/drivers/pinctrl/pinctrl-samsung.c
+++ b/drivers/pinctrl/pinctrl-samsung.c
@@ -714,7 +714,6 @@ static int __devinit samsung_pinctrl_register(struct platform_device *pdev,
}
ctrldesc->pins = pindesc;
ctrldesc->npins = drvdata->ctrl->nr_pins;
- ctrldesc->npins = drvdata->ctrl->nr_pins;
/* dynamically populate the pin number and pin name for pindesc */
for (pin = 0, pdesc = pindesc; pin < ctrldesc->npins; pin++, pdesc++)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists