diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 0845cd4c5155..709c836607de 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -300,16 +300,16 @@ int spi_add_device(struct spi_device *spi) | |||
300 | */ | 300 | */ |
301 | status = spi_setup(spi); | 301 | status = spi_setup(spi); |
302 | if (status < 0) { | 302 | if (status < 0) { |
303 | dev_err(dev, "can't %s %s, status %d\n", | 303 | dev_err(dev, "can't setup %s, status %d\n", |
304 | "setup", dev_name(&spi->dev), status); | 304 | dev_name(&spi->dev), status); |
305 | goto done; | 305 | goto done; |
306 | } | 306 | } |
307 | 307 | ||
308 | /* Device may be bound to an active driver when this returns */ | 308 | /* Device may be bound to an active driver when this returns */ |
309 | status = device_add(&spi->dev); | 309 | status = device_add(&spi->dev); |
310 | if (status < 0) | 310 | if (status < 0) |
311 | dev_err(dev, "can't %s %s, status %d\n", | 311 | dev_err(dev, "can't add %s, status %d\n", |
312 | "add", dev_name(&spi->dev), status); | 312 | dev_name(&spi->dev), status); |
313 | else | 313 | else |
314 | dev_dbg(dev, "registered child %s\n", dev_name(&spi->dev)); | 314 | dev_dbg(dev, "registered child %s\n", dev_name(&spi->dev)); |
315 | 315 | ||
@@ -658,7 +658,7 @@ int spi_setup(struct spi_device *spi) | |||
658 | */ | 658 | */ |
659 | bad_bits = spi->mode & ~spi->master->mode_bits; | 659 | bad_bits = spi->mode & ~spi->master->mode_bits; |
660 | if (bad_bits) { | 660 | if (bad_bits) { |
661 | dev_dbg(&spi->dev, "setup: unsupported mode bits %x\n", | 661 | dev_err(&spi->dev, "setup: unsupported mode bits %x\n", |
662 | bad_bits); | 662 | bad_bits); |
663 | return -EINVAL; | 663 | return -EINVAL; |
664 | } | 664 | } |