Skip to content

Commit cd58c84

Browse files
andy-shevlag-linaro
authored andcommitted
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 <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 05879b1 commit cd58c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/intel_soc_pmic_bxtwc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ static struct platform_driver bxtwc_driver = {
573573
.driver = {
574574
.name = "BXTWC PMIC",
575575
.pm = pm_sleep_ptr(&bxtwc_pm_ops),
576-
.acpi_match_table = ACPI_PTR(bxtwc_acpi_ids),
576+
.acpi_match_table = bxtwc_acpi_ids,
577577
.dev_groups = bxtwc_groups,
578578
},
579579
};

0 commit comments

Comments
 (0)