Skip to content

Commit 348cce3

Browse files
author
Greg Ungerer
committed
m68k: removed unused "mach_get_ss"
The m68k machine helper function "mach_get_ss" function pointer is set for some machines, but ultimately never used anywhere. Remove it. Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
1 parent 1300eec commit 348cce3

4 files changed

Lines changed: 0 additions & 17 deletions

File tree

arch/m68k/hp300/config.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,6 @@ static int hp300_hwclk(int op, struct rtc_time *t)
240240
return 0;
241241
}
242242

243-
static unsigned int hp300_get_ss(void)
244-
{
245-
return hp300_rtc_read(RTC_REG_SEC1) * 10 +
246-
hp300_rtc_read(RTC_REG_SEC2);
247-
}
248-
249243
static void __init hp300_init_IRQ(void)
250244
{
251245
}
@@ -256,7 +250,6 @@ void __init config_hp300(void)
256250
mach_init_IRQ = hp300_init_IRQ;
257251
mach_get_model = hp300_get_model;
258252
mach_hwclk = hp300_hwclk;
259-
mach_get_ss = hp300_get_ss;
260253
mach_reset = hp300_reset;
261254
#ifdef CONFIG_HEARTBEAT
262255
mach_heartbeat = hp300_pulse;

arch/m68k/include/asm/machdep.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ extern void (*mach_get_model) (char *model);
1919
extern void (*mach_get_hardware_list) (struct seq_file *m);
2020
/* machine dependent timer functions */
2121
extern int (*mach_hwclk)(int, struct rtc_time*);
22-
extern unsigned int (*mach_get_ss)(void);
2322
extern int (*mach_get_rtc_pll)(struct rtc_pll_info *);
2423
extern int (*mach_set_rtc_pll)(struct rtc_pll_info *);
2524
extern void (*mach_reset)( void );

arch/m68k/kernel/setup_mm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ void (*mach_sched_init) (void) __initdata = NULL;
8787
void (*mach_init_IRQ) (void) __initdata = NULL;
8888
void (*mach_get_model) (char *model);
8989
void (*mach_get_hardware_list) (struct seq_file *m);
90-
unsigned int (*mach_get_ss)(void);
91-
EXPORT_SYMBOL(mach_get_ss);
9290
void (*mach_reset)( void );
9391
void (*mach_halt)( void );
9492
void (*mach_power_off)( void );

arch/m68k/q40/config.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ static void q40_get_model(char *model);
4141
extern void q40_sched_init(void);
4242

4343
static int q40_hwclk(int, struct rtc_time *);
44-
static unsigned int q40_get_ss(void);
4544
static int q40_get_rtc_pll(struct rtc_pll_info *pll);
4645
static int q40_set_rtc_pll(struct rtc_pll_info *pll);
4746

@@ -169,7 +168,6 @@ void __init config_q40(void)
169168

170169
mach_init_IRQ = q40_init_IRQ;
171170
mach_hwclk = q40_hwclk;
172-
mach_get_ss = q40_get_ss;
173171
mach_get_rtc_pll = q40_get_rtc_pll;
174172
mach_set_rtc_pll = q40_set_rtc_pll;
175173

@@ -246,11 +244,6 @@ static int q40_hwclk(int op, struct rtc_time *t)
246244
return 0;
247245
}
248246

249-
static unsigned int q40_get_ss(void)
250-
{
251-
return bcd2bin(Q40_RTC_SECS);
252-
}
253-
254247
/* get and set PLL calibration of RTC clock */
255248
#define Q40_RTC_PLL_MASK ((1<<5)-1)
256249
#define Q40_RTC_PLL_SIGN (1<<5)

0 commit comments

Comments
 (0)