OSDN Git Service

rtc: ds1347: remove verbose messages
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Oct 2019 13:47:16 +0000 (15:47 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Oct 2019 13:49:24 +0000 (15:49 +0200)
Printing debugging (and opaque) information is not useful and only clutters
the boot log. Remove those messages.

Link: https://lore.kernel.org/r/20191007134724.15505-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1347.c

index d392a7b..ab5533c 100644 (file)
@@ -141,13 +141,6 @@ static int ds1347_probe(struct spi_device *spi)
        data = data & 0x1B;
        regmap_write(map, DS1347_STATUS_REG, data);
 
-       /* display the settings */
-       regmap_read(map, DS1347_CONTROL_REG, &data);
-       dev_info(&spi->dev, "DS1347 RTC CTRL Reg = 0x%02x\n", data);
-
-       regmap_read(map, DS1347_STATUS_REG, &data);
-       dev_info(&spi->dev, "DS1347 RTC Status Reg = 0x%02x\n", data);
-
        rtc = devm_rtc_device_register(&spi->dev, "ds1347",
                                &ds1347_rtc_ops, THIS_MODULE);