Skip to content

Commit dc2a900

Browse files
committed
pinctrl: mvebu: remove obsolete per-control name buffer allocation
With the introduction of a global name buffer, we can now remove the allocation and preparation of per-control name buffers. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Tested-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
1 parent 8d898fd commit dc2a900

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎drivers/pinctrl/mvebu/pinctrl-mvebu.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,6 @@ int mvebu_pinctrl_probe(struct platform_device *pdev)
636636
pctl->desc.npins = 0;
637637
for (n = 0; n < soc->ncontrols; n++) {
638638
struct mvebu_mpp_ctrl *ctrl = &soc->controls[n];
639-
char *names;
640639

641640
pctl->desc.npins += ctrl->npins;
642641
/* initial control pins */
@@ -654,14 +653,6 @@ int mvebu_pinctrl_probe(struct platform_device *pdev)
654653
}
655654

656655
/* generic mvebu register control */
657-
names = devm_kzalloc(&pdev->dev, ctrl->npins * 8, GFP_KERNEL);
658-
if (!names) {
659-
dev_err(&pdev->dev, "failed to alloc mpp names\n");
660-
return -ENOMEM;
661-
}
662-
for (k = 0; k < ctrl->npins; k++)
663-
sprintf(names + 8*k, "mpp%d", ctrl->pid+k);
664-
ctrl->name = names;
665656
pctl->num_groups += ctrl->npins;
666657
noname += ctrl->npins;
667658
}

0 commit comments

Comments
 (0)