drivers: rtc: fix enum type mismatching issue

The enum type mismatching was caught by LLVM.

Jira: ZEP-1179

Change-Id: I50b68e201ef6fb18a02eeda2a2e7548dad3f358c
Signed-off-by: Baohong Liu <baohong.liu@intel.com>
This commit is contained in:
Baohong Liu 2016-11-15 16:57:57 -08:00 committed by Anas Nashif
commit fb83ea9cc6

View file

@ -132,7 +132,7 @@ static int rtc_qmsi_set_config(struct device *dev, struct rtc_config *cfg)
* values defined by clk_rtc_div and by QMSI's clk_rtc_div_t match for * values defined by clk_rtc_div and by QMSI's clk_rtc_div_t match for
* both D2000 and SE. * both D2000 and SE.
*/ */
qm_cfg.prescaler = RTC_DIVIDER; qm_cfg.prescaler = (clk_rtc_div_t)RTC_DIVIDER;
rtc_critical_region_start(dev); rtc_critical_region_start(dev);