diff options
Diffstat (limited to 'drivers/rtc/rtc-ds1305.c')
-rw-r--r-- | drivers/rtc/rtc-ds1305.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c index 686a865913e1..b05a6dc96405 100644 --- a/drivers/rtc/rtc-ds1305.c +++ b/drivers/rtc/rtc-ds1305.c | |||
@@ -601,7 +601,7 @@ static struct bin_attribute nvram = { | |||
601 | * Interface to SPI stack | 601 | * Interface to SPI stack |
602 | */ | 602 | */ |
603 | 603 | ||
604 | static int __devinit ds1305_probe(struct spi_device *spi) | 604 | static int ds1305_probe(struct spi_device *spi) |
605 | { | 605 | { |
606 | struct ds1305 *ds1305; | 606 | struct ds1305 *ds1305; |
607 | int status; | 607 | int status; |
@@ -635,9 +635,7 @@ static int __devinit ds1305_probe(struct spi_device *spi) | |||
635 | goto fail0; | 635 | goto fail0; |
636 | } | 636 | } |
637 | 637 | ||
638 | dev_dbg(&spi->dev, "ctrl %s: %02x %02x %02x\n", | 638 | dev_dbg(&spi->dev, "ctrl %s: %3ph\n", "read", ds1305->ctrl); |
639 | "read", ds1305->ctrl[0], | ||
640 | ds1305->ctrl[1], ds1305->ctrl[2]); | ||
641 | 639 | ||
642 | /* Sanity check register values ... partially compensating for the | 640 | /* Sanity check register values ... partially compensating for the |
643 | * fact that SPI has no device handshake. A pullup on MISO would | 641 | * fact that SPI has no device handshake. A pullup on MISO would |
@@ -723,9 +721,7 @@ static int __devinit ds1305_probe(struct spi_device *spi) | |||
723 | goto fail0; | 721 | goto fail0; |
724 | } | 722 | } |
725 | 723 | ||
726 | dev_dbg(&spi->dev, "ctrl %s: %02x %02x %02x\n", | 724 | dev_dbg(&spi->dev, "ctrl %s: %3ph\n", "write", ds1305->ctrl); |
727 | "write", ds1305->ctrl[0], | ||
728 | ds1305->ctrl[1], ds1305->ctrl[2]); | ||
729 | } | 725 | } |
730 | 726 | ||
731 | /* see if non-Linux software set up AM/PM mode */ | 727 | /* see if non-Linux software set up AM/PM mode */ |
@@ -787,7 +783,7 @@ fail0: | |||
787 | return status; | 783 | return status; |
788 | } | 784 | } |
789 | 785 | ||
790 | static int __devexit ds1305_remove(struct spi_device *spi) | 786 | static int ds1305_remove(struct spi_device *spi) |
791 | { | 787 | { |
792 | struct ds1305 *ds1305 = spi_get_drvdata(spi); | 788 | struct ds1305 *ds1305 = spi_get_drvdata(spi); |
793 | 789 | ||
@@ -810,7 +806,7 @@ static struct spi_driver ds1305_driver = { | |||
810 | .driver.name = "rtc-ds1305", | 806 | .driver.name = "rtc-ds1305", |
811 | .driver.owner = THIS_MODULE, | 807 | .driver.owner = THIS_MODULE, |
812 | .probe = ds1305_probe, | 808 | .probe = ds1305_probe, |
813 | .remove = __devexit_p(ds1305_remove), | 809 | .remove = ds1305_remove, |
814 | /* REVISIT add suspend/resume */ | 810 | /* REVISIT add suspend/resume */ |
815 | }; | 811 | }; |
816 | 812 | ||