diff options
Diffstat (limited to 'drivers/mtd/devices/pmc551.c')
| -rw-r--r-- | drivers/mtd/devices/pmc551.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/mtd/devices/pmc551.c b/drivers/mtd/devices/pmc551.c index 666cce1bf60c..30f07b473ae2 100644 --- a/drivers/mtd/devices/pmc551.c +++ b/drivers/mtd/devices/pmc551.c | |||
| @@ -551,11 +551,11 @@ static u32 fixup_pmc551 (struct pci_dev *dev) | |||
| 551 | /* | 551 | /* |
| 552 | * Some screen fun | 552 | * Some screen fun |
| 553 | */ | 553 | */ |
| 554 | printk(KERN_DEBUG "pmc551: %d%c (0x%x) of %sprefetchable memory at 0x%lx\n", | 554 | printk(KERN_DEBUG "pmc551: %d%c (0x%x) of %sprefetchable memory at 0x%llx\n", |
| 555 | (size<1024)?size:(size<1048576)?size>>10:size>>20, | 555 | (size<1024)?size:(size<1048576)?size>>10:size>>20, |
| 556 | (size<1024)?'B':(size<1048576)?'K':'M', | 556 | (size<1024)?'B':(size<1048576)?'K':'M', |
| 557 | size, ((dcmd&(0x1<<3)) == 0)?"non-":"", | 557 | size, ((dcmd&(0x1<<3)) == 0)?"non-":"", |
| 558 | (dev->resource[0].start)&PCI_BASE_ADDRESS_MEM_MASK ); | 558 | (unsigned long long)((dev->resource[0].start)&PCI_BASE_ADDRESS_MEM_MASK)); |
| 559 | 559 | ||
| 560 | /* | 560 | /* |
| 561 | * Check to see the state of the memory | 561 | * Check to see the state of the memory |
| @@ -685,8 +685,8 @@ static int __init init_pmc551(void) | |||
| 685 | break; | 685 | break; |
| 686 | } | 686 | } |
| 687 | 687 | ||
| 688 | printk(KERN_NOTICE "pmc551: Found PCI V370PDC at 0x%lX\n", | 688 | printk(KERN_NOTICE "pmc551: Found PCI V370PDC at 0x%llx\n", |
| 689 | PCI_Device->resource[0].start); | 689 | (unsigned long long)PCI_Device->resource[0].start); |
| 690 | 690 | ||
| 691 | /* | 691 | /* |
| 692 | * The PMC551 device acts VERY weird if you don't init it | 692 | * The PMC551 device acts VERY weird if you don't init it |
| @@ -778,7 +778,8 @@ static int __init init_pmc551(void) | |||
| 778 | mtd->type = MTD_RAM; | 778 | mtd->type = MTD_RAM; |
| 779 | mtd->name = "PMC551 RAM board"; | 779 | mtd->name = "PMC551 RAM board"; |
| 780 | mtd->erasesize = 0x10000; | 780 | mtd->erasesize = 0x10000; |
| 781 | mtd->owner = THIS_MODULE; | 781 | mtd->writesize = 1; |
| 782 | mtd->owner = THIS_MODULE; | ||
| 782 | 783 | ||
| 783 | if (add_mtd_device(mtd)) { | 784 | if (add_mtd_device(mtd)) { |
| 784 | printk(KERN_NOTICE "pmc551: Failed to register new device\n"); | 785 | printk(KERN_NOTICE "pmc551: Failed to register new device\n"); |
