linux/drivers/mtd/devices
Artem Bityutskiy d85316ac45 [MTD] fix m25p80 64-bit divisions
MTD has recently been upgraded for 64-bit support, see commit
number 69423d99fc in the
mtd-2.6.git tree (git://git.infradead.org/mtd-2.6.git)
or see this URL:
http://git.infradead.org/mtd-2.6.git?a=commit;h=69423d99fc182a81f3c5db3eb5c140acc6fc64be

Some variables in MTD data structures which were 32-bit
became 64-bit. Namely, the 'size' field in 'struct mtd_info'
and the 'addr'/'len' fields in 'struct erase_info'. This
means we have to use 'do_div' to divide them.

This patch fixes the following linking error:
ERROR: "__umoddi3" [drivers/mtd/devices/m25p80.ko] undefined!

This patch changes divisions of 64-bit variable so that they use
'do_div'. This patch also change some print placeholders to
get rid of gcc warnings.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2008-12-19 16:23:35 +00:00
..
block2mtd.c [PATCH] propagate mode through open_bdev_excl/close_bdev_excl 2008-10-21 07:49:00 -04:00
doc2000.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
doc2001.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
doc2001plus.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
docecc.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
docprobe.c [MTD] [NAND] remove __PPC__ hardcoded address from DiskOnChip drivers 2008-07-11 18:21:54 +01:00
Kconfig [MTD] make dataflash write-verify be optional 2008-08-07 11:49:00 +01:00
lart.c [MTD] Make lart_flash_init, lart_flash_exit static 2008-12-10 13:00:26 +00:00
m25p80.c [MTD] fix m25p80 64-bit divisions 2008-12-19 16:23:35 +00:00
Makefile MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
ms02-nv.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
ms02-nv.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
mtd_dataflash.c [MTD] fix dataflash 64-bit divisions 2008-12-19 16:23:18 +00:00
mtdram.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
phram.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
pmc551.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
slram.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00