On 11/15/2013 12:54 PM, Geert Uytterhoeven wrote:drivers/rtc/rtc-s5m.c: In function âs5m_rtc_probeâ:
drivers/rtc/rtc-s5m.c:545: warning: assignment from incompatible
pointer type
struct s5m_rtc_info.rtc has type "struct regmap *", while
struct sec_pmic_dev.rtc has type "struct i2c_client *".
Probably the author wanted to assign "struct sec_pmic_dev.regmap", which
has the correct type.
Also, as "rtc" doesn't make much sense as a name for a regmap, rename
it to
"regmap".
Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
I would be really surprised if this driver didn't just crash...
Please test. Thanks!
drivers/rtc/rtc-s5m.c | 54
++++++++++++++++++++++++-------------------------
1 file changed, 27 insertions(+), 27 deletions(-)
Seems good, tested on device with S5M8767.
Tested-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx>