diff options
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/Kconfig | 4 | ||||
-rw-r--r-- | arch/m68k/bvme6000/config.c | 2 | ||||
-rw-r--r-- | arch/m68k/mvme16x/rtc.c | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index 8849439e88dd..805b81fedf80 100644 --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig | |||
@@ -17,6 +17,10 @@ config RWSEM_GENERIC_SPINLOCK | |||
17 | config RWSEM_XCHGADD_ALGORITHM | 17 | config RWSEM_XCHGADD_ALGORITHM |
18 | bool | 18 | bool |
19 | 19 | ||
20 | config GENERIC_HWEIGHT | ||
21 | bool | ||
22 | default y | ||
23 | |||
20 | config GENERIC_CALIBRATE_DELAY | 24 | config GENERIC_CALIBRATE_DELAY |
21 | bool | 25 | bool |
22 | default y | 26 | default y |
diff --git a/arch/m68k/bvme6000/config.c b/arch/m68k/bvme6000/config.c index 3ffc84f9c291..c90cb5fcc8ef 100644 --- a/arch/m68k/bvme6000/config.c +++ b/arch/m68k/bvme6000/config.c | |||
@@ -142,7 +142,7 @@ void __init config_bvme6000(void) | |||
142 | /* Now do the PIT configuration */ | 142 | /* Now do the PIT configuration */ |
143 | 143 | ||
144 | pit->pgcr = 0x00; /* Unidirectional 8 bit, no handshake for now */ | 144 | pit->pgcr = 0x00; /* Unidirectional 8 bit, no handshake for now */ |
145 | pit->psrr = 0x18; /* PIACK and PIRQ fucntions enabled */ | 145 | pit->psrr = 0x18; /* PIACK and PIRQ functions enabled */ |
146 | pit->pacr = 0x00; /* Sub Mode 00, H2 i/p, no DMA */ | 146 | pit->pacr = 0x00; /* Sub Mode 00, H2 i/p, no DMA */ |
147 | pit->padr = 0x00; /* Just to be tidy! */ | 147 | pit->padr = 0x00; /* Just to be tidy! */ |
148 | pit->paddr = 0x00; /* All inputs for now (safest) */ | 148 | pit->paddr = 0x00; /* All inputs for now (safest) */ |
diff --git a/arch/m68k/mvme16x/rtc.c b/arch/m68k/mvme16x/rtc.c index a69fe3048edc..b0e4c084df8a 100644 --- a/arch/m68k/mvme16x/rtc.c +++ b/arch/m68k/mvme16x/rtc.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/poll.h> | 17 | #include <linux/poll.h> |
18 | #include <linux/mc146818rtc.h> /* For struct rtc_time and ioctls, etc */ | 18 | #include <linux/mc146818rtc.h> /* For struct rtc_time and ioctls, etc */ |
19 | #include <linux/smp_lock.h> | 19 | #include <linux/smp_lock.h> |
20 | #include <linux/bcd.h> | ||
20 | #include <asm/mvme16xhw.h> | 21 | #include <asm/mvme16xhw.h> |
21 | 22 | ||
22 | #include <asm/io.h> | 23 | #include <asm/io.h> |
@@ -31,9 +32,6 @@ | |||
31 | * ioctls. | 32 | * ioctls. |
32 | */ | 33 | */ |
33 | 34 | ||
34 | #define BCD2BIN(val) (((val)&15) + ((val)>>4)*10) | ||
35 | #define BIN2BCD(val) ((((val)/10)<<4) + (val)%10) | ||
36 | |||
37 | static const unsigned char days_in_mo[] = | 35 | static const unsigned char days_in_mo[] = |
38 | {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | 36 | {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; |
39 | 37 | ||