diff options
author | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:26:33 -0600 |
---|---|---|
committer | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:26:33 -0600 |
commit | 0c129f1be7a29163e62899254326d8d15a9d3ef9 (patch) | |
tree | 3db454a7d00e4dc24b80249b18c13e07170f2634 /drivers | |
parent | 3c26454dc04f150f577049bf1f1adf6c999f126b (diff) |
CR ENGR00050116 Fix flawed implementation of XIP Macros
Patch for CR ENGR00050116 Fix flawed implementation of XIP Macros.
The existing flawed implementations of xip_currtime, xip_elasped_since
and xip_irqpending macros are fixed. Applies to linux 2.6.22 kernel
for MX platforms.
http://www.bitshrine.org/gpp/linux-2.6.22-mx-CR-ENGR00050116-Fix-flawed-implementation-.patch
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/maps/mxc_nor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/maps/mxc_nor.c b/drivers/mtd/maps/mxc_nor.c index 14da2a28ea57..6c69e0164c73 100644 --- a/drivers/mtd/maps/mxc_nor.c +++ b/drivers/mtd/maps/mxc_nor.c @@ -22,6 +22,7 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/map.h> #include <linux/mtd/partitions.h> +#include <linux/clocksource.h> #include <asm/mach-types.h> #include <asm/mach/flash.h> @@ -31,6 +32,8 @@ static const char *part_probes[] = { "RedBoot", "cmdlinepart", NULL }; #endif +struct clocksource *mtd_xip_clksrc; + struct mxcflash_info { struct mtd_partition *parts; struct mtd_info *mtd; @@ -75,6 +78,8 @@ static int __devinit mxcflash_probe(struct platform_device *pdev) info->map.size = size; info->map.bankwidth = flash->width; + mtd_xip_clksrc = clocksource_get_next(); + simple_map_init(&info->map); info->mtd = do_map_probe(flash->map_name, &info->map); if (!info->mtd) { |