diff options
-rw-r--r-- | drivers/rtc/rtc-tps6586x.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c index b70614fb7d5e..641f1461646d 100644 --- a/drivers/rtc/rtc-tps6586x.c +++ b/drivers/rtc/rtc-tps6586x.c @@ -291,8 +291,9 @@ static int __devinit tps6586x_rtc_probe(struct platform_device *pdev) /* 1 kHz tick mode, enable tick counting */ err = tps6586x_update(tps_dev, RTC_CTRL, - RTC_ENABLE | ((pdata->cl_sel<<CL_SEL_POS)&CL_SEL_MASK), - RTC_ENABLE | OSC_SRC_SEL | PRE_BYPASS | CL_SEL_MASK); + RTC_ENABLE | OSC_SRC_SEL | ((pdata->cl_sel << CL_SEL_POS) & + CL_SEL_MASK), + RTC_ENABLE | OSC_SRC_SEL | PRE_BYPASS | CL_SEL_MASK); if (err < 0) { dev_err(&pdev->dev, "unable to start counter\n"); goto fail; |