Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74606
b: refs/heads/master
c: f452126
h: refs/heads/master
v: v3
  • Loading branch information
Bryan Wu authored and Linus Torvalds committed Dec 5, 2007
1 parent 337a32b commit 6b88dcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d8c05008b0e464c94967ed2f20d1d661fca6790e
refs/heads/master: f452126c2e4b8bbfd8e41ebdf1e734e3bf18f8e9
9 changes: 4 additions & 5 deletions trunk/drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct driver_data {
struct spi_master *master;

/* Regs base of SPI controller */
u32 regs_base;
void __iomem *regs_base;

/* BFIN hookup */
struct bfin5xx_spi_master *master_info;
Expand Down Expand Up @@ -1311,9 +1311,8 @@ static int __init bfin5xx_spi_probe(struct platform_device *pdev)
goto out_error_get_res;
}

drv_data->regs_base = (u32) ioremap(res->start,
(res->end - res->start + 1));
if (!drv_data->regs_base) {
drv_data->regs_base = ioremap(res->start, (res->end - res->start + 1));
if (drv_data->regs_base == NULL) {
dev_err(dev, "Cannot map IO\n");
status = -ENXIO;
goto out_error_ioremap;
Expand Down Expand Up @@ -1352,7 +1351,7 @@ static int __init bfin5xx_spi_probe(struct platform_device *pdev)
goto out_error;
}

dev_info(dev, "%s, Version %s, regs_base@0x%08x, dma channel@%d\n",
dev_info(dev, "%s, Version %s, regs_base@%p, dma channel@%d\n",
DRV_DESC, DRV_VERSION, drv_data->regs_base,
drv_data->dma_channel);
return status;
Expand Down

0 comments on commit 6b88dcc

Please sign in to comment.