From: Paul Gortmaker Date: Thu, 28 Apr 2022 06:24:29 +0000 (-0400) Subject: platform/x86: pmc_atom: dont export pmc_atom_read - no modular users X-Git-Tag: v6.6.17~7515^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=619695fab3ba18a9145000280b0d74faf2131dea;p=platform%2Fkernel%2Flinux-rpi.git platform/x86: pmc_atom: dont export pmc_atom_read - no modular users There is only one user of pmc_atom_read in tree, and that is in drivers/acpi/acpi_lpss.c -- which can't be anything but built-in. As such there is no point in adding this function to the global symbol list exported to modules. Note that there is no include removal since the code was getting that header implicitly. Cc: Andy Shevchenko Cc: Aubrey Li Cc: Hans de Goede Cc: Mark Gross Cc: platform-driver-x86@vger.kernel.org Signed-off-by: Paul Gortmaker Link: https://lore.kernel.org/r/20220428062430.31010-4-paul.gortmaker@windriver.com Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c index 31cf25d..b8b1ed1 100644 --- a/drivers/platform/x86/pmc_atom.c +++ b/drivers/platform/x86/pmc_atom.c @@ -221,7 +221,6 @@ int pmc_atom_read(int offset, u32 *value) *value = pmc_reg_read(pmc, offset); return 0; } -EXPORT_SYMBOL_GPL(pmc_atom_read); static void pmc_power_off(void) {