Skip to content

Commit c34c177

Browse files
committed
pinctrl: sunrisepoint: 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 ec7cf5c commit c34c177

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pinctrl/intel/pinctrl-sunrisepoint.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -591,15 +591,10 @@ static const struct acpi_device_id spt_pinctrl_acpi_match[] = {
591591
};
592592
MODULE_DEVICE_TABLE(acpi, spt_pinctrl_acpi_match);
593593

594-
static int spt_pinctrl_probe(struct platform_device *pdev)
595-
{
596-
return intel_pinctrl_probe_by_hid(pdev);
597-
}
598-
599594
static INTEL_PINCTRL_PM_OPS(spt_pinctrl_pm_ops);
600595

601596
static struct platform_driver spt_pinctrl_driver = {
602-
.probe = spt_pinctrl_probe,
597+
.probe = intel_pinctrl_probe_by_hid,
603598
.driver = {
604599
.name = "sunrisepoint-pinctrl",
605600
.acpi_match_table = spt_pinctrl_acpi_match,

0 commit comments

Comments
 (0)