Skip to content

Commit f8eafb5

Browse files
committed
alpha: properly define get/set_rtc_time on Marvel/SMP
The marvel_get_rtc_time and marvel_set_rtc_time are static, but they're available through Marvel's machine vector. Reported-by: Raúl Porcel <[email protected]> Signed-off-by: Matt Turner <[email protected]>
1 parent dd7f1fe commit f8eafb5

File tree

1 file changed

+2
-6
lines changed
  • arch/alpha/include/asm

1 file changed

+2
-6
lines changed

arch/alpha/include/asm/rtc.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
#ifndef _ALPHA_RTC_H
22
#define _ALPHA_RTC_H
33

4-
#if defined(CONFIG_ALPHA_GENERIC)
4+
#if defined(CONFIG_ALPHA_MARVEL) && defined(CONFIG_SMP) \
5+
|| defined(CONFIG_ALPHA_GENERIC)
56
# define get_rtc_time alpha_mv.rtc_get_time
67
# define set_rtc_time alpha_mv.rtc_set_time
7-
#else
8-
# if defined(CONFIG_ALPHA_MARVEL) && defined(CONFIG_SMP)
9-
# define get_rtc_time marvel_get_rtc_time
10-
# define set_rtc_time marvel_set_rtc_time
11-
# endif
128
#endif
139

1410
#include <asm-generic/rtc.h>

0 commit comments

Comments
 (0)