ehci-platform.c (22d9d8e8316d7f69046c8805ce9aa8d9c43d4e5b) | ehci-platform.c (e1fd7341837238c6c5380c5073887d238f706cf0) |
---|---|
1/* 2 * Generic platform ehci driver 3 * 4 * Copyright 2007 Steven Brown <sbrown@cortland.com> 5 * Copyright 2010-2012 Hauke Mehrtens <hauke@hauke-m.de> 6 * 7 * Derived from the ohci-ssb driver 8 * Copyright 2007 Michael Buesch <m@bues.ch> --- 75 unchanged lines hidden (view full) --- 84 return -ENODEV; 85 86 /* 87 * use reasonable defaults so platforms don't have to provide these. 88 * with DT probing on ARM, none of these are set. 89 */ 90 if (!dev_get_platdata(&dev->dev)) 91 dev->dev.platform_data = &ehci_platform_defaults; | 1/* 2 * Generic platform ehci driver 3 * 4 * Copyright 2007 Steven Brown <sbrown@cortland.com> 5 * Copyright 2010-2012 Hauke Mehrtens <hauke@hauke-m.de> 6 * 7 * Derived from the ohci-ssb driver 8 * Copyright 2007 Michael Buesch <m@bues.ch> --- 75 unchanged lines hidden (view full) --- 84 return -ENODEV; 85 86 /* 87 * use reasonable defaults so platforms don't have to provide these. 88 * with DT probing on ARM, none of these are set. 89 */ 90 if (!dev_get_platdata(&dev->dev)) 91 dev->dev.platform_data = &ehci_platform_defaults; |
92 if (!dev->dev.dma_mask) 93 dev->dev.dma_mask = &dev->dev.coherent_dma_mask; 94 err = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32)); | 92 93 err = dma_coerce_mask_and_coherent(&dev->dev, DMA_BIT_MASK(32)); |
95 if (err) 96 return err; 97 98 pdata = dev_get_platdata(&dev->dev); 99 100 irq = platform_get_irq(dev, 0); 101 if (irq < 0) { 102 dev_err(&dev->dev, "no irq provided"); --- 156 unchanged lines hidden --- | 94 if (err) 95 return err; 96 97 pdata = dev_get_platdata(&dev->dev); 98 99 irq = platform_get_irq(dev, 0); 100 if (irq < 0) { 101 dev_err(&dev->dev, "no irq provided"); --- 156 unchanged lines hidden --- |