diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-03-24 19:38:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 19:38:21 -0400 |
commit | 6c7377ab6814c247d7600955a4ead2e3db490697 (patch) | |
tree | fabaed3b89e26609cdb911bd75407ed9c4b073b3 /drivers/spi/omap_uwire.c | |
parent | 031d5518591006efd13a33a86909b9477b22917b (diff) |
spi: struct device - replace bus_id with dev_name(), dev_set_name()
Cc: dbrownell@users.sourceforge.net
Cc: spi-devel-general@lists.sourceforge.net
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Diffstat (limited to 'drivers/spi/omap_uwire.c')
-rw-r--r-- | drivers/spi/omap_uwire.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/spi/omap_uwire.c b/drivers/spi/omap_uwire.c index bab6ff061e91..60b5381c65c4 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 | } |