summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/physmap.c
diff options
context:
space:
mode:
authorArtem Bityutskiy2008-12-18 13:10:05 +0100
committerDavid Woodhouse2008-12-19 17:23:35 +0100
commitd85316ac459f1cdd14ea1828eebeac1f1028e167 (patch)
tree2d9cc1bc3cec5cff015160b0dfcf45bbdbf59651 /drivers/mtd/maps/physmap.c
parent[MTD] fix dataflash 64-bit divisions (diff)
downloadkernel-qcow2-linux-d85316ac459f1cdd14ea1828eebeac1f1028e167.tar.gz
kernel-qcow2-linux-d85316ac459f1cdd14ea1828eebeac1f1028e167.tar.xz
kernel-qcow2-linux-d85316ac459f1cdd14ea1828eebeac1f1028e167.zip
[MTD] fix m25p80 64-bit divisions
MTD has recently been upgraded for 64-bit support, see commit number 69423d99fc182a81f3c5db3eb5c140acc6fc64be 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>
Diffstat (limited to 'drivers/mtd/maps/physmap.c')
0 files changed, 0 insertions, 0 deletions