Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198332
b: refs/heads/master
c: 6ba8bcd
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed May 25, 2010
1 parent 21967eb commit 607c3d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72cc8e51cfdde9007adab7d841ac4113b05b2c56
refs/heads/master: 6ba8bcd457d9fc793ac9435aa2e4138f571d4ec5
5 changes: 3 additions & 2 deletions trunk/drivers/rtc/rtc-cmos.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,15 +719,16 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
}
}

cmos_rtc.dev = dev;
dev_set_drvdata(dev, &cmos_rtc);

cmos_rtc.rtc = rtc_device_register(driver_name, dev,
&cmos_rtc_ops, THIS_MODULE);
if (IS_ERR(cmos_rtc.rtc)) {
retval = PTR_ERR(cmos_rtc.rtc);
goto cleanup0;
}

cmos_rtc.dev = dev;
dev_set_drvdata(dev, &cmos_rtc);
rename_region(ports, dev_name(&cmos_rtc.rtc->dev));

spin_lock_irq(&rtc_lock);
Expand Down

0 comments on commit 607c3d8

Please sign in to comment.