File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -386,8 +386,6 @@ static int wm8350_rtc_probe(struct platform_device *pdev)
386
386
/* enable the RTC if it's not already enabled */
387
387
power5 = wm8350_reg_read (wm8350 , WM8350_POWER_MGMT_5 );
388
388
if (!(power5 & WM8350_RTC_TICK_ENA )) {
389
- dev_info (wm8350 -> dev , "Starting RTC\n" );
390
-
391
389
wm8350_reg_unlock (wm8350 );
392
390
393
391
ret = wm8350_set_bits (wm8350 , WM8350_POWER_MGMT_5 ,
@@ -426,11 +424,8 @@ static int wm8350_rtc_probe(struct platform_device *pdev)
426
424
427
425
wm_rtc -> rtc = devm_rtc_device_register (& pdev -> dev , "wm8350" ,
428
426
& wm8350_rtc_ops , THIS_MODULE );
429
- if (IS_ERR (wm_rtc -> rtc )) {
430
- ret = PTR_ERR (wm_rtc -> rtc );
431
- dev_err (& pdev -> dev , "failed to register RTC: %d\n" , ret );
432
- return ret ;
433
- }
427
+ if (IS_ERR (wm_rtc -> rtc ))
428
+ return PTR_ERR (wm_rtc -> rtc );
434
429
435
430
ret = wm8350_register_irq (wm8350 , WM8350_IRQ_RTC_SEC ,
436
431
wm8350_rtc_update_handler , 0 ,
You can’t perform that action at this time.
0 commit comments