mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Merge remote-tracking branch 'spi/topic/bcm2835' into spi-next
This commit is contained in:
commit
8bce7eb7de
1 changed files with 3 additions and 4 deletions
|
|
@ -331,10 +331,9 @@ static int bcm2835_spi_probe(struct platform_device *pdev)
|
|||
goto out_master_put;
|
||||
}
|
||||
|
||||
bs->regs = devm_request_and_ioremap(&pdev->dev, res);
|
||||
if (!bs->regs) {
|
||||
dev_err(&pdev->dev, "could not request/map memory region\n");
|
||||
err = -ENODEV;
|
||||
bs->regs = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(bs->regs)) {
|
||||
err = PTR_ERR(bs->regs);
|
||||
goto out_master_put;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue