diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-04-28 11:11:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 17:58:17 +0200 |
commit | e2bfe3424b368e977002fc58f81536d5d8ea9449 (patch) | |
tree | 6bdc0c1dbf189ce7b8c4f7e74db2ef40cbf97ec9 /drivers/rtc/rtc-sysfs.c | |
parent | kerneldoc for <linux/clk.h> (diff) | |
download | linux-e2bfe3424b368e977002fc58f81536d5d8ea9449.tar.xz linux-e2bfe3424b368e977002fc58f81536d5d8ea9449.zip |
rtc: rtc-rs5c372: fix up NULL name in transfer error path
rs5c_get_regs() currently uses rs5c->rtc->name for its debug printk when
i2c_transfer() fails, though it is used several times before the rtc dev
has been registered. The earliest we can get at the symbolic name is via
the i2c client's struct device, which can be handled by moving the first
rs5c_get_regs() until after the client pointer is assigned.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-sysfs.c')
0 files changed, 0 insertions, 0 deletions