aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/pmc_atom.c
diff options
context:
space:
mode:
authorPaul Gortmaker <[email protected]>2022-04-28 06:24:27 +0000
committerHans de Goede <[email protected]>2022-05-06 11:02:56 +0000
commit6de4d4eca9a2d0195f802bc97b0e9aeeaff05900 (patch)
tree76609fca8df0d6815d4583e217731a37ad77601f /drivers/platform/x86/pmc_atom.c
parentplatform/x86: amd-pmc: Fix build error unused-function (diff)
downloadkernel-6de4d4eca9a2d0195f802bc97b0e9aeeaff05900.tar.gz
kernel-6de4d4eca9a2d0195f802bc97b0e9aeeaff05900.zip
platform/x86: pmc_atom: remove unused pmc_atom_write()
This function isn't used anywhere in the driver or anywhere in tree. So remove it. It can always be re-added if/when a use arises. Cc: Andy Shevchenko <[email protected]> Cc: Aubrey Li <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Mark Gross <[email protected]> Cc: [email protected] Signed-off-by: Paul Gortmaker <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/pmc_atom.c')
-rw-r--r--drivers/platform/x86/pmc_atom.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/platform/x86/pmc_atom.c b/drivers/platform/x86/pmc_atom.c
index a40fae6edc84..31cf25d25d66 100644
--- a/drivers/platform/x86/pmc_atom.c
+++ b/drivers/platform/x86/pmc_atom.c
@@ -223,18 +223,6 @@ int pmc_atom_read(int offset, u32 *value)
}
EXPORT_SYMBOL_GPL(pmc_atom_read);
-int pmc_atom_write(int offset, u32 value)
-{
- struct pmc_dev *pmc = &pmc_device;
-
- if (!pmc->init)
- return -ENODEV;
-
- pmc_reg_write(pmc, offset, value);
- return 0;
-}
-EXPORT_SYMBOL_GPL(pmc_atom_write);
-
static void pmc_power_off(void)
{
u16 pm1_cnt_port;