diff options
Diffstat (limited to 'drivers/usb/host/ehci-platform.c')
-rw-r--r-- | drivers/usb/host/ehci-platform.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index f6b790ca8cf2..7f30b7168d5a 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c | |||
@@ -78,7 +78,7 @@ static int ehci_platform_probe(struct platform_device *dev) | |||
78 | struct resource *res_mem; | 78 | struct resource *res_mem; |
79 | struct usb_ehci_pdata *pdata; | 79 | struct usb_ehci_pdata *pdata; |
80 | int irq; | 80 | int irq; |
81 | int err = -ENOMEM; | 81 | int err; |
82 | 82 | ||
83 | if (usb_disabled()) | 83 | if (usb_disabled()) |
84 | return -ENODEV; | 84 | return -ENODEV; |
@@ -89,10 +89,10 @@ static int ehci_platform_probe(struct platform_device *dev) | |||
89 | */ | 89 | */ |
90 | if (!dev_get_platdata(&dev->dev)) | 90 | if (!dev_get_platdata(&dev->dev)) |
91 | dev->dev.platform_data = &ehci_platform_defaults; | 91 | dev->dev.platform_data = &ehci_platform_defaults; |
92 | if (!dev->dev.dma_mask) | 92 | |
93 | dev->dev.dma_mask = &dev->dev.coherent_dma_mask; | 93 | err = dma_coerce_mask_and_coherent(&dev->dev, DMA_BIT_MASK(32)); |
94 | if (!dev->dev.coherent_dma_mask) | 94 | if (err) |
95 | dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); | 95 | return err; |
96 | 96 | ||
97 | pdata = dev_get_platdata(&dev->dev); | 97 | pdata = dev_get_platdata(&dev->dev); |
98 | 98 | ||