Skip to content

Commit

Permalink
m68k: use non-mmu version of unaligned.h for all m68k
Browse files Browse the repository at this point in the history
The non-mmu version is appropriately ifdef'ed to be used "as is"
on all m68k varients. So switch to it as the only unaligned.h.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Greg Ungerer committed Mar 24, 2009
1 parent f358cbc commit af85fe9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 41 deletions.
26 changes: 23 additions & 3 deletions arch/m68k/include/asm/unaligned.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#ifdef __uClinux__
#include "unaligned_no.h"
#ifndef _ASM_M68KNOMMU_UNALIGNED_H
#define _ASM_M68KNOMMU_UNALIGNED_H


#ifdef CONFIG_COLDFIRE
#include <linux/unaligned/be_struct.h>
#include <linux/unaligned/le_byteshift.h>
#include <linux/unaligned/generic.h>

#define get_unaligned __get_unaligned_be
#define put_unaligned __put_unaligned_be

#else
#include "unaligned_mm.h"
/*
* The m68k can do unaligned accesses itself.
*/
#include <linux/unaligned/access_ok.h>
#include <linux/unaligned/generic.h>

#define get_unaligned __get_unaligned_be
#define put_unaligned __put_unaligned_be

#endif

#endif /* _ASM_M68KNOMMU_UNALIGNED_H */
13 changes: 0 additions & 13 deletions arch/m68k/include/asm/unaligned_mm.h

This file was deleted.

25 changes: 0 additions & 25 deletions arch/m68k/include/asm/unaligned_no.h

This file was deleted.

0 comments on commit af85fe9

Please sign in to comment.