diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-30 17:53:32 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-30 17:53:32 -0400 |
commit | 65fb0d23fcddd8697c871047b700c78817bdaa43 (patch) | |
tree | 119e6e5f276622c4c862f6c9b6d795264ba1603a /drivers/spi/omap_uwire.c | |
parent | 8c083f081d0014057901c68a0a3e0f8ca7ac8d23 (diff) | |
parent | dfbbe89e197a77f2c8046a51c74e33e35f878080 (diff) |
Merge branch 'linus' into cpumask-for-linus
Conflicts:
arch/x86/kernel/cpu/common.c
Diffstat (limited to 'drivers/spi/omap_uwire.c')
-rw-r--r-- | drivers/spi/omap_uwire.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/spi/omap_uwire.c b/drivers/spi/omap_uwire.c index bab6ff061e91..fe8b9ac0ccef 100644 --- a/drivers/spi/omap_uwire.c +++ b/drivers/spi/omap_uwire.c | |||
@@ -245,7 +245,7 @@ static int uwire_txrx(struct spi_device *spi, struct spi_transfer *t) | |||
245 | 245 | ||
246 | #ifdef VERBOSE | 246 | #ifdef VERBOSE |
247 | pr_debug("%s: write-%d =%04x\n", | 247 | pr_debug("%s: write-%d =%04x\n", |
248 | spi->dev.bus_id, bits, val); | 248 | dev_name(&spi->dev), bits, val); |
249 | #endif | 249 | #endif |
250 | if (wait_uwire_csr_flag(CSRB, 0, 0)) | 250 | if (wait_uwire_csr_flag(CSRB, 0, 0)) |
251 | goto eio; | 251 | goto eio; |
@@ -305,7 +305,7 @@ static int uwire_txrx(struct spi_device *spi, struct spi_transfer *t) | |||
305 | status += bytes; | 305 | status += bytes; |
306 | #ifdef VERBOSE | 306 | #ifdef VERBOSE |
307 | pr_debug("%s: read-%d =%04x\n", | 307 | pr_debug("%s: read-%d =%04x\n", |
308 | spi->dev.bus_id, bits, val); | 308 | dev_name(&spi->dev), bits, val); |
309 | #endif | 309 | #endif |
310 | 310 | ||
311 | } | 311 | } |
@@ -331,7 +331,7 @@ static int uwire_setup_transfer(struct spi_device *spi, struct spi_transfer *t) | |||
331 | uwire = spi_master_get_devdata(spi->master); | 331 | uwire = spi_master_get_devdata(spi->master); |
332 | 332 | ||
333 | if (spi->chip_select > 3) { | 333 | if (spi->chip_select > 3) { |
334 | pr_debug("%s: cs%d?\n", spi->dev.bus_id, spi->chip_select); | 334 | pr_debug("%s: cs%d?\n", dev_name(&spi->dev), spi->chip_select); |
335 | status = -ENODEV; | 335 | status = -ENODEV; |
336 | goto done; | 336 | goto done; |
337 | } | 337 | } |
@@ -343,7 +343,7 @@ static int uwire_setup_transfer(struct spi_device *spi, struct spi_transfer *t) | |||
343 | bits = 8; | 343 | bits = 8; |
344 | 344 | ||
345 | if (bits > 16) { | 345 | if (bits > 16) { |
346 | pr_debug("%s: wordsize %d?\n", spi->dev.bus_id, bits); | 346 | pr_debug("%s: wordsize %d?\n", dev_name(&spi->dev), bits); |
347 | status = -ENODEV; | 347 | status = -ENODEV; |
348 | goto done; | 348 | goto done; |
349 | } | 349 | } |
@@ -378,7 +378,7 @@ static int uwire_setup_transfer(struct spi_device *spi, struct spi_transfer *t) | |||
378 | hz = t->speed_hz; | 378 | hz = t->speed_hz; |
379 | 379 | ||
380 | if (!hz) { | 380 | if (!hz) { |
381 | pr_debug("%s: zero speed?\n", spi->dev.bus_id); | 381 | pr_debug("%s: zero speed?\n", dev_name(&spi->dev)); |
382 | status = -EINVAL; | 382 | status = -EINVAL; |
383 | goto done; | 383 | goto done; |
384 | } | 384 | } |
@@ -406,7 +406,7 @@ static int uwire_setup_transfer(struct spi_device *spi, struct spi_transfer *t) | |||
406 | } | 406 | } |
407 | if (div1_idx == 4) { | 407 | if (div1_idx == 4) { |
408 | pr_debug("%s: lowest clock %ld, need %d\n", | 408 | pr_debug("%s: lowest clock %ld, need %d\n", |
409 | spi->dev.bus_id, rate / 10 / 8, hz); | 409 | dev_name(&spi->dev), rate / 10 / 8, hz); |
410 | status = -EDOM; | 410 | status = -EDOM; |
411 | goto done; | 411 | goto done; |
412 | } | 412 | } |
@@ -506,11 +506,12 @@ static int __init uwire_probe(struct platform_device *pdev) | |||
506 | 506 | ||
507 | dev_set_drvdata(&pdev->dev, uwire); | 507 | dev_set_drvdata(&pdev->dev, uwire); |
508 | 508 | ||
509 | uwire->ck = clk_get(&pdev->dev, "armxor_ck"); | 509 | uwire->ck = clk_get(&pdev->dev, "fck"); |
510 | if (!uwire->ck || IS_ERR(uwire->ck)) { | 510 | if (IS_ERR(uwire->ck)) { |
511 | dev_dbg(&pdev->dev, "no mpu_xor_clk ?\n"); | 511 | status = PTR_ERR(uwire->ck); |
512 | dev_dbg(&pdev->dev, "no functional clock?\n"); | ||
512 | spi_master_put(master); | 513 | spi_master_put(master); |
513 | return -ENODEV; | 514 | return status; |
514 | } | 515 | } |
515 | clk_enable(uwire->ck); | 516 | clk_enable(uwire->ck); |
516 | 517 | ||