diff options
Diffstat (limited to 'drivers/mtd/nand/r852.c')
-rw-r--r-- | drivers/mtd/nand/r852.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c index 9307a88e5229..7a616a926ee9 100644 --- a/drivers/mtd/nand/r852.c +++ b/drivers/mtd/nand/r852.c | |||
@@ -654,7 +654,9 @@ int r852_register_nand_device(struct r852_device *dev) | |||
654 | if (sm_register_device(dev->mtd)) | 654 | if (sm_register_device(dev->mtd)) |
655 | goto error2; | 655 | goto error2; |
656 | 656 | ||
657 | device_create_file(&dev->mtd->dev, &dev_attr_media_type); | 657 | if (device_create_file(&dev->mtd->dev, &dev_attr_media_type)) |
658 | message("can't create media type sysfs attribute"); | ||
659 | |||
658 | dev->card_registred = 1; | 660 | dev->card_registred = 1; |
659 | return 0; | 661 | return 0; |
660 | error2: | 662 | error2: |
@@ -838,7 +840,7 @@ int r852_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) | |||
838 | 840 | ||
839 | pci_set_master(pci_dev); | 841 | pci_set_master(pci_dev); |
840 | 842 | ||
841 | error = pci_set_dma_mask(pci_dev, DMA_32BIT_MASK); | 843 | error = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); |
842 | if (error) | 844 | if (error) |
843 | goto error2; | 845 | goto error2; |
844 | 846 | ||