Skip to content

Commit

Permalink
bcm2835_smi: fix dma transfers
Browse files Browse the repository at this point in the history
PR raspberrypi#1629 removed a dereference in the original code leading to smi_bus_address being wrong
  • Loading branch information
Stary2001 committed Dec 12, 2018
1 parent faf0452 commit c49cd23
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/misc/bcm2835_smi.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,6 @@ static int bcm2835_smi_probe(struct platform_device *pdev)
struct device_node *node = dev->of_node;
struct resource *ioresource;
struct bcm2835_smi_instance *inst;
const __be32 *addr;

/* We require device tree support */
if (!node)
Expand All @@ -878,8 +877,7 @@ static int bcm2835_smi_probe(struct platform_device *pdev)
err = PTR_ERR(inst->smi_regs_ptr);
goto err;
}
addr = of_get_address(node, 0, NULL, NULL);
inst->smi_regs_busaddr = be32_to_cpu(addr);
inst->smi_regs_busaddr = be32_to_cpu(*of_get_address(node, 0, NULL, NULL));

err = bcm2835_smi_dma_setup(inst);
if (err)
Expand Down

0 comments on commit c49cd23

Please sign in to comment.