Artem Bityutskiy 5b7f3a500c [MTD] fix dataflash 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: "__udivdi3" [drivers/mtd/devices/mtd_dataflash.ko] undefined!
ERROR: "__umoddi3" [drivers/mtd/devices/mtd_dataflash.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>
Cc: David Brownell <david-b@pacbell.net>
Cc: Nicolas Pitre <nico@cam.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2008-12-19 16:23:18 +00:00
..
2008-12-09 00:44:29 -05:00
2008-11-29 20:42:28 -08:00
2008-10-28 17:46:02 +09:00
2008-11-30 10:03:36 -08:00
2008-12-01 19:55:25 -08:00
2008-11-07 08:25:43 -08:00
2008-11-01 09:50:12 -07:00
2008-11-30 10:03:37 -08:00
2008-10-21 07:48:33 -04:00
2008-12-19 16:23:18 +00:00
2008-10-16 11:21:30 -07:00
2008-10-27 19:15:41 +01:00
2008-11-04 08:18:19 -08:00
2008-11-30 10:03:37 -08:00
2008-12-04 04:22:57 -05:00
2008-11-10 13:50:17 -08:00
2008-11-01 09:49:46 -07:00
2008-11-17 19:11:26 +01:00
2008-10-28 21:47:17 +00:00