On Wed, Nov 23, 2011 at 10:12:27PM +0100, franck.jullien@xxxxxxxxx wrote: > From: Franck Jullien <franck.jullien@xxxxxxxxx> Applied this one to master. Sascha > > drivers/ata/disk_drive.c needs it.... > > Signed-off-by: Franck Jullien <franck.jullien@xxxxxxxxx> > --- > arch/nios2/include/asm/unaligned.h | 15 +++++++++++++++ > 1 files changed, 15 insertions(+), 0 deletions(-) > create mode 100644 arch/nios2/include/asm/unaligned.h > > diff --git a/arch/nios2/include/asm/unaligned.h b/arch/nios2/include/asm/unaligned.h > new file mode 100644 > index 0000000..7615e8a > --- /dev/null > +++ b/arch/nios2/include/asm/unaligned.h > @@ -0,0 +1,15 @@ > +#ifndef _ASM_NIOS_UNALIGNED_H > +#define _ASM_NIOS_UNALIGNED_H > + > +#include <linux/unaligned/le_byteshift.h> > +#include <linux/unaligned/be_byteshift.h> > +#include <linux/unaligned/generic.h> > + > +/* > + * Select endianness > + */ > + > +#define get_unaligned __get_unaligned_le > +#define put_unaligned __put_unaligned_le > + > +#endif /* _ASM_NIOS_UNALIGNED_H */ > -- > 1.7.7 > > > _______________________________________________ > barebox mailing list > barebox@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox