Skip to content

Commit bdc2bc7

Browse files
committed
pinctrl: broxton: Get rid of unneeded ->probe() stub
The local ->probe() stub does nothing except calling a generic Intel pin control probe function. Thus, it's not needed and generic function may be called directly. Convert the driver accordingly. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
1 parent 883a60d commit bdc2bc7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pinctrl/intel/pinctrl-broxton.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,15 +1006,10 @@ static const struct platform_device_id bxt_pinctrl_platform_ids[] = {
10061006
{ },
10071007
};
10081008

1009-
static int bxt_pinctrl_probe(struct platform_device *pdev)
1010-
{
1011-
return intel_pinctrl_probe_by_uid(pdev);
1012-
}
1013-
10141009
static INTEL_PINCTRL_PM_OPS(bxt_pinctrl_pm_ops);
10151010

10161011
static struct platform_driver bxt_pinctrl_driver = {
1017-
.probe = bxt_pinctrl_probe,
1012+
.probe = intel_pinctrl_probe_by_uid,
10181013
.driver = {
10191014
.name = "broxton-pinctrl",
10201015
.acpi_match_table = bxt_pinctrl_acpi_match,

0 commit comments

Comments
 (0)