diff --git a/drivers/misc/bcm2835_smi.c b/drivers/misc/bcm2835_smi.c index 1261540703127d..f973599162018d 100644 --- a/drivers/misc/bcm2835_smi.c +++ b/drivers/misc/bcm2835_smi.c @@ -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) @@ -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)