File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1667,9 +1667,8 @@ static int ds1307_probe(struct i2c_client *client,
16671667 }
16681668
16691669 ds1307 -> rtc = devm_rtc_allocate_device (ds1307 -> dev );
1670- if (IS_ERR (ds1307 -> rtc )) {
1670+ if (IS_ERR (ds1307 -> rtc ))
16711671 return PTR_ERR (ds1307 -> rtc );
1672- }
16731672
16741673 if (ds1307_can_wakeup_device && !want_irq ) {
16751674 dev_info (ds1307 -> dev ,
@@ -1688,8 +1687,9 @@ static int ds1307_probe(struct i2c_client *client,
16881687 device_set_wakeup_capable (ds1307 -> dev , false);
16891688 clear_bit (HAS_ALARM , & ds1307 -> flags );
16901689 dev_err (ds1307 -> dev , "unable to request IRQ!\n" );
1691- } else
1690+ } else {
16921691 dev_dbg (ds1307 -> dev , "got IRQ %d\n" , client -> irq );
1692+ }
16931693 }
16941694
16951695 if (chip -> nvram_size ) {
You can’t perform that action at this time.
0 commit comments