diff options
Diffstat (limited to 'arch/m68k')
| -rw-r--r-- | arch/m68k/Kconfig | 5 | ||||
| -rw-r--r-- | arch/m68k/amiga/config.c | 3 | ||||
| -rw-r--r-- | arch/m68k/include/asm/ipcbuf.h | 30 | ||||
| -rw-r--r-- | arch/m68k/include/asm/thread_info.h | 1 | ||||
| -rw-r--r-- | arch/m68k/include/asm/types.h | 6 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/gpio.c | 9 | 
6 files changed, 9 insertions, 45 deletions
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index 81fdaa72c54..ae413d4a8bb 100644 --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig @@ -6,6 +6,7 @@ config M68K  	select HAVE_GENERIC_HARDIRQS  	select GENERIC_IRQ_SHOW  	select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS +	select GENERIC_CPU_DEVICES  config RWSEM_GENERIC_SPINLOCK  	bool @@ -37,9 +38,6 @@ config GENERIC_CALIBRATE_DELAY  	bool  	default y -config GENERIC_IOMAP -	def_bool MMU -  config GENERIC_CSUM  	bool @@ -81,6 +79,7 @@ source "kernel/Kconfig.freezer"  config MMU  	bool "MMU-based Paged Memory Management Support"  	default y +	select GENERIC_IOMAP  	help  	  Select if you want MMU-based virtualised addressing space  	  support by paged memory management. If unsure, say 'Y'. diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index 82a4bb51d5d..b95a451b1c3 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c @@ -511,8 +511,7 @@ static unsigned long amiga_gettimeoffset(void)  	return ticks + offset;  } -static NORET_TYPE void amiga_reset(void) -    ATTRIB_NORET; +static void amiga_reset(void)  __noreturn;  static void amiga_reset(void)  { diff --git a/arch/m68k/include/asm/ipcbuf.h b/arch/m68k/include/asm/ipcbuf.h index a623ea3f095..84c7e51cb6d 100644 --- a/arch/m68k/include/asm/ipcbuf.h +++ b/arch/m68k/include/asm/ipcbuf.h @@ -1,29 +1 @@ -#ifndef __m68k_IPCBUF_H__ -#define __m68k_IPCBUF_H__ - -/* - * The user_ipc_perm structure for m68k architecture. - * Note extra padding because this structure is passed back and forth - * between kernel and user space. - * - * Pad space is left for: - * - 32-bit mode_t and seq - * - 2 miscellaneous 32-bit values - */ - -struct ipc64_perm -{ -	__kernel_key_t		key; -	__kernel_uid32_t	uid; -	__kernel_gid32_t	gid; -	__kernel_uid32_t	cuid; -	__kernel_gid32_t	cgid; -	__kernel_mode_t		mode; -	unsigned short		__pad1; -	unsigned short		seq; -	unsigned short		__pad2; -	unsigned long		__unused1; -	unsigned long		__unused2; -}; - -#endif /* __m68k_IPCBUF_H__ */ +#include <asm-generic/ipcbuf.h> diff --git a/arch/m68k/include/asm/thread_info.h b/arch/m68k/include/asm/thread_info.h index 29fa6da4f17..e8665e6f946 100644 --- a/arch/m68k/include/asm/thread_info.h +++ b/arch/m68k/include/asm/thread_info.h @@ -76,7 +76,6 @@ static inline struct thread_info *current_thread_info(void)  #define TIF_DELAYED_TRACE	14	/* single step a syscall */  #define TIF_SYSCALL_TRACE	15	/* syscall trace active */  #define TIF_MEMDIE		16	/* is terminating due to OOM killer */ -#define TIF_FREEZE		17	/* thread is freezing for suspend */  #define TIF_RESTORE_SIGMASK	18	/* restore signal mask in do_signal */  #endif	/* _ASM_M68K_THREAD_INFO_H */ diff --git a/arch/m68k/include/asm/types.h b/arch/m68k/include/asm/types.h index b17fd115a4e..89705adcbd5 100644 --- a/arch/m68k/include/asm/types.h +++ b/arch/m68k/include/asm/types.h @@ -10,12 +10,6 @@   */  #include <asm-generic/int-ll64.h> -#ifndef __ASSEMBLY__ - -typedef unsigned short umode_t; - -#endif /* __ASSEMBLY__ */ -  /*   * These aren't exported outside the kernel to avoid name space clashes   */ diff --git a/arch/m68k/platform/coldfire/gpio.c b/arch/m68k/platform/coldfire/gpio.c index ff004579345..292a1a5a2d7 100644 --- a/arch/m68k/platform/coldfire/gpio.c +++ b/arch/m68k/platform/coldfire/gpio.c @@ -15,7 +15,7 @@  #include <linux/kernel.h>  #include <linux/init.h> -#include <linux/sysdev.h> +#include <linux/device.h>  #include <asm/gpio.h>  #include <asm/pinmux.h> @@ -115,13 +115,14 @@ void mcf_gpio_free(struct gpio_chip *chip, unsigned offset)  		mcf_pinmux_release(mcf_chip->gpio_to_pinmux[offset], 0);  } -struct sysdev_class mcf_gpio_sysclass = { -	.name	= "gpio", +struct bus_type mcf_gpio_subsys = { +	.name		= "gpio", +	.dev_name	= "gpio",  };  static int __init mcf_gpio_sysinit(void)  { -	return sysdev_class_register(&mcf_gpio_sysclass); +	return subsys_system_register(&mcf_gpio_subsys, NULL);  }  core_initcall(mcf_gpio_sysinit);  |