Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376047
b: refs/heads/master
c: 642f2ec
h: refs/heads/master
i:
  376045: 829d7c9
  376043: 8cde99b
  376039: 7dc425b
  376031: 4ab5311
v: v3
  • Loading branch information
Matthijs Kooijman authored and Greg Kroah-Hartman committed May 17, 2013
1 parent 0ee5b3e commit c466122
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91ec61f8f01cf32868e2ed2fa96a299e77964055
refs/heads/master: 642f2ecc092f4d2d5a9b7219090531508017c324
8 changes: 8 additions & 0 deletions trunk/drivers/staging/dwc2/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ static int dwc2_driver_probe(struct platform_device *dev)

hsotg->dev = &dev->dev;

/*
* Use reasonable defaults so platforms don't have to provide these.
*/
if (!dev->dev.dma_mask)
dev->dev.dma_mask = &dev->dev.coherent_dma_mask;
if (!dev->dev.coherent_dma_mask)
dev->dev.coherent_dma_mask = DMA_BIT_MASK(32);

irq = platform_get_irq(dev, 0);
if (irq < 0) {
dev_err(&dev->dev, "missing IRQ resource\n");
Expand Down

0 comments on commit c466122

Please sign in to comment.