Skip to content

Commit

Permalink
platform/x86: pmc_atom: remove unused pmc_atom_write()
Browse files Browse the repository at this point in the history
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 <andriy.shevchenko@linux.intel.com>
Cc: Aubrey Li <aubrey.li@linux.intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Mark Gross <markgross@kernel.org>
Cc: platform-driver-x86@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Link: https://lore.kernel.org/r/20220428062430.31010-2-paul.gortmaker@windriver.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
Paul Gortmaker authored and jwrdegoede committed May 6, 2022
1 parent 17faaac commit 6de4d4e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions drivers/platform/x86/pmc_atom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion include/linux/platform_data/x86/pmc_atom.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,5 @@
#define SLEEP_ENABLE 0x2000

extern int pmc_atom_read(int offset, u32 *value);
extern int pmc_atom_write(int offset, u32 value);

#endif /* PMC_ATOM_H */

0 comments on commit 6de4d4e

Please sign in to comment.