From: Andy Shevchenko Date: Thu, 30 Aug 2018 16:27:42 +0000 (+0300) Subject: pinctrl: sunrisepoint: Convert to use intel_pinctrl_probe_by_hid() X-Git-Tag: v5.4-rc1~2434^2~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c03e92e7d665b01afbddf057b2cc07587ffc2cc;p=platform%2Fkernel%2Flinux-rpi.git pinctrl: sunrisepoint: Convert to use intel_pinctrl_probe_by_hid() Get rid of code duplication by converting to use intel_pinctrl_probe_by_hid(). No functional change intended. Signed-off-by: Andy Shevchenko Acked-by: Mika Westerberg Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/intel/pinctrl-sunrisepoint.c b/drivers/pinctrl/intel/pinctrl-sunrisepoint.c index 7984392104fe..c7b5272fd927 100644 --- a/drivers/pinctrl/intel/pinctrl-sunrisepoint.c +++ b/drivers/pinctrl/intel/pinctrl-sunrisepoint.c @@ -7,10 +7,11 @@ * Mika Westerberg */ -#include +#include #include #include #include + #include #include "pinctrl-intel.h" @@ -593,15 +594,7 @@ MODULE_DEVICE_TABLE(acpi, spt_pinctrl_acpi_match); static int spt_pinctrl_probe(struct platform_device *pdev) { - const struct intel_pinctrl_soc_data *soc_data; - const struct acpi_device_id *id; - - id = acpi_match_device(spt_pinctrl_acpi_match, &pdev->dev); - if (!id || !id->driver_data) - return -ENODEV; - - soc_data = (const struct intel_pinctrl_soc_data *)id->driver_data; - return intel_pinctrl_probe(pdev, soc_data); + return intel_pinctrl_probe_by_hid(pdev); } static const struct dev_pm_ops spt_pinctrl_pm_ops = {