hpet: remove hpets::hp_clocksource

Message ID 20240213111527.25218-1-jirislaby@kernel.org
State New
Headers
Series hpet: remove hpets::hp_clocksource |

Commit Message

Jiri Slaby Feb. 13, 2024, 11:15 a.m. UTC
  Commit cf8e8658100d (arch: Remove Itanium (IA-64) architecture) removed
the last user of hpets::hp_clocksource. Drop the member.

Found by https://github.com/jirislaby/clang-struct.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Clemens Ladisch <clemens@ladisch.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/char/hpet.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Arnd Bergmann Feb. 13, 2024, 12:41 p.m. UTC | #1
On Tue, Feb 13, 2024, at 12:15, Jiri Slaby (SUSE) wrote:
> Commit cf8e8658100d (arch: Remove Itanium (IA-64) architecture) removed
> the last user of hpets::hp_clocksource. Drop the member.
>
> Found by https://github.com/jirislaby/clang-struct.

Nice tool!

> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
> Cc: Clemens Ladisch <clemens@ladisch.de>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Acked-by: Arnd Bergmann <arnd@arndb.de>
  

Patch

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index 9c90b1d2c036..d51fc8321d41 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -87,7 +87,6 @@  struct hpets {
 	struct hpets *hp_next;
 	struct hpet __iomem *hp_hpet;
 	unsigned long hp_hpet_phys;
-	struct clocksource *hp_clocksource;
 	unsigned long long hp_tick_freq;
 	unsigned long hp_delta;
 	unsigned int hp_ntimer;