Skip to content

Commit ec7cf5c

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

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

drivers/pinctrl/intel/pinctrl-icelake.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -403,21 +403,16 @@ static const struct intel_pinctrl_soc_data icllp_soc_data = {
403403
.ncommunities = ARRAY_SIZE(icllp_communities),
404404
};
405405

406-
static int icl_pinctrl_probe(struct platform_device *pdev)
407-
{
408-
return intel_pinctrl_probe(pdev, &icllp_soc_data);
409-
}
410-
411406
static INTEL_PINCTRL_PM_OPS(icl_pinctrl_pm_ops);
412407

413408
static const struct acpi_device_id icl_pinctrl_acpi_match[] = {
414-
{ "INT3455" },
409+
{ "INT3455", (kernel_ulong_t)&icllp_soc_data },
415410
{ },
416411
};
417412
MODULE_DEVICE_TABLE(acpi, icl_pinctrl_acpi_match);
418413

419414
static struct platform_driver icl_pinctrl_driver = {
420-
.probe = icl_pinctrl_probe,
415+
.probe = intel_pinctrl_probe_by_hid,
421416
.driver = {
422417
.name = "icelake-pinctrl",
423418
.acpi_match_table = icl_pinctrl_acpi_match,

0 commit comments

Comments
 (0)