diff options
author | Vinod Koul <vinod.koul@intel.com> | 2017-11-14 00:03:24 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-11-14 00:03:24 -0500 |
commit | b683fa223b45edae9ef95e4607e3a70ab09966d7 (patch) | |
tree | c07445ccbda7773a2c542423fcc2abeef3523ceb | |
parent | c7960fc5e0f445bc4c9e096814ed31efed469406 (diff) | |
parent | 087ffdd2880b5dd7724ac6d0ca663da398fe1ccf (diff) |
Merge branch 'topic/renasas' into for-linus
-rw-r--r-- | Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt | 2 | ||||
-rw-r--r-- | drivers/dma/nbpfaxi.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt b/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt index 1be6941ac1e5..f3d1f151ba80 100644 --- a/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt +++ b/Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt | |||
@@ -3,6 +3,8 @@ | |||
3 | Required Properties: | 3 | Required Properties: |
4 | -compatible: "renesas,<soctype>-usb-dmac", "renesas,usb-dmac" as fallback. | 4 | -compatible: "renesas,<soctype>-usb-dmac", "renesas,usb-dmac" as fallback. |
5 | Examples with soctypes are: | 5 | Examples with soctypes are: |
6 | - "renesas,r8a7743-usb-dmac" (RZ/G1M) | ||
7 | - "renesas,r8a7745-usb-dmac" (RZ/G1E) | ||
6 | - "renesas,r8a7790-usb-dmac" (R-Car H2) | 8 | - "renesas,r8a7790-usb-dmac" (R-Car H2) |
7 | - "renesas,r8a7791-usb-dmac" (R-Car M2-W) | 9 | - "renesas,r8a7791-usb-dmac" (R-Car M2-W) |
8 | - "renesas,r8a7793-usb-dmac" (R-Car M2-N) | 10 | - "renesas,r8a7793-usb-dmac" (R-Car M2-N) |
diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index d3f918a9ee76..50559338239b 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c | |||
@@ -1286,7 +1286,6 @@ MODULE_DEVICE_TABLE(of, nbpf_match); | |||
1286 | static int nbpf_probe(struct platform_device *pdev) | 1286 | static int nbpf_probe(struct platform_device *pdev) |
1287 | { | 1287 | { |
1288 | struct device *dev = &pdev->dev; | 1288 | struct device *dev = &pdev->dev; |
1289 | const struct of_device_id *of_id = of_match_device(nbpf_match, dev); | ||
1290 | struct device_node *np = dev->of_node; | 1289 | struct device_node *np = dev->of_node; |
1291 | struct nbpf_device *nbpf; | 1290 | struct nbpf_device *nbpf; |
1292 | struct dma_device *dma_dev; | 1291 | struct dma_device *dma_dev; |
@@ -1300,10 +1299,10 @@ static int nbpf_probe(struct platform_device *pdev) | |||
1300 | BUILD_BUG_ON(sizeof(struct nbpf_desc_page) > PAGE_SIZE); | 1299 | BUILD_BUG_ON(sizeof(struct nbpf_desc_page) > PAGE_SIZE); |
1301 | 1300 | ||
1302 | /* DT only */ | 1301 | /* DT only */ |
1303 | if (!np || !of_id || !of_id->data) | 1302 | if (!np) |
1304 | return -ENODEV; | 1303 | return -ENODEV; |
1305 | 1304 | ||
1306 | cfg = of_id->data; | 1305 | cfg = of_device_get_match_data(dev); |
1307 | num_channels = cfg->num_channels; | 1306 | num_channels = cfg->num_channels; |
1308 | 1307 | ||
1309 | nbpf = devm_kzalloc(dev, sizeof(*nbpf) + num_channels * | 1308 | nbpf = devm_kzalloc(dev, sizeof(*nbpf) + num_channels * |