From: Andy Shevchenko Date: Tue, 28 Jun 2022 22:17:43 +0000 (+0300) Subject: mfd: intel_soc_pmic_bxtwc: Drop redundant ACPI_PTR() X-Git-Tag: v6.1~811^2~10 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cd58c84034234a51bdb852a862f9037b68622d45;p=mirror_ubuntu-kernels.git mfd: intel_soc_pmic_bxtwc: Drop redundant ACPI_PTR() The driver depends on ACPI (via MFD_INTEL_PMC_BXT), ACPI_PTR() resolution is always the same. Otherwise a compiler may produce a warning. That said, the rule of thumb either ugly ifdeffery with ACPI_PTR or none should be used in a driver. Signed-off-by: Andy Shevchenko Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20220628221747.33956-7-andriy.shevchenko@linux.intel.com --- diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c index 7c3ce440c826..f79ae0ddc495 100644 --- a/drivers/mfd/intel_soc_pmic_bxtwc.c +++ b/drivers/mfd/intel_soc_pmic_bxtwc.c @@ -573,7 +573,7 @@ static struct platform_driver bxtwc_driver = { .driver = { .name = "BXTWC PMIC", .pm = pm_sleep_ptr(&bxtwc_pm_ops), - .acpi_match_table = ACPI_PTR(bxtwc_acpi_ids), + .acpi_match_table = bxtwc_acpi_ids, .dev_groups = bxtwc_groups, }, };