X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fpnc2000.c;h=b204786d52f88e20e2d243017c38205e02aa0c8d;hb=6367666f534ee8fa9c6a7b667f38b5e445f85918;hp=a0f43dad898507877d026d82754e2d92634b8f94;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/drivers/mtd/maps/pnc2000.c b/drivers/mtd/maps/pnc2000.c index a0f43dad8..b204786d5 100644 --- a/drivers/mtd/maps/pnc2000.c +++ b/drivers/mtd/maps/pnc2000.c @@ -5,7 +5,7 @@ * * This code is GPL * - * $Id: pnc2000.c,v 1.17 2004/11/16 18:29:02 dwmw2 Exp $ + * $Id: pnc2000.c,v 1.15 2004/07/12 21:59:44 dwmw2 Exp $ */ #include @@ -26,12 +26,12 @@ */ -static struct map_info pnc_map = { +struct map_info pnc_map = { .name = "PNC-2000", .size = WINDOW_SIZE, .bankwidth = 4, .phys = 0xFFFFFFFF, - .virt = (void __iomem *)WINDOW_ADDR, + .virt = WINDOW_ADDR, }; @@ -62,7 +62,7 @@ static struct mtd_partition pnc_partitions[3] = { */ static struct mtd_info *mymtd; -static int __init init_pnc2000(void) +int __init init_pnc2000(void) { printk(KERN_NOTICE "Photron PNC-2000 flash mapping: %x at %x\n", WINDOW_SIZE, WINDOW_ADDR);