]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc: m41t80: Add proper compatible for rv4162
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 19 Apr 2017 20:05:48 +0000 (22:05 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 19 Apr 2017 20:05:48 +0000 (22:05 +0200)
The correct compatible for the rv4162 (microcrystal,rv4162) was not used
upstream and so was not added by eb235c561d04e.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-m41t80.c

index 5b070aa711f9d0a333f6cd847d9c33b54b146a6f..5ec4653022fff574ae8d4df2a31531d6963b5ca2 100644 (file)
@@ -128,6 +128,11 @@ static const struct of_device_id m41t80_of_match[] = {
                .compatible = "st,m41t87",
                .data = (void *)(M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ)
        },
+       {
+               .compatible = "microcrystal,rv4162",
+               .data = (void *)(M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT)
+       },
+       /* DT compatibility only, do not use compatibles below: */
        {
                .compatible = "st,rv4162",
                .data = (void *)(M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT)