Skip to content

Commit 9080e77

Browse files
committed
pinctrl: cannonlake: 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 bdc2bc7 commit 9080e77

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pinctrl/intel/pinctrl-cannonlake.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -833,15 +833,10 @@ static const struct acpi_device_id cnl_pinctrl_acpi_match[] = {
833833
};
834834
MODULE_DEVICE_TABLE(acpi, cnl_pinctrl_acpi_match);
835835

836-
static int cnl_pinctrl_probe(struct platform_device *pdev)
837-
{
838-
return intel_pinctrl_probe_by_hid(pdev);
839-
}
840-
841836
static INTEL_PINCTRL_PM_OPS(cnl_pinctrl_pm_ops);
842837

843838
static struct platform_driver cnl_pinctrl_driver = {
844-
.probe = cnl_pinctrl_probe,
839+
.probe = intel_pinctrl_probe_by_hid,
845840
.driver = {
846841
.name = "cannonlake-pinctrl",
847842
.acpi_match_table = cnl_pinctrl_acpi_match,

0 commit comments

Comments
 (0)