summary refs log tree commit diff
path: root/drivers/edac
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2015-04-16 12:45:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 09:04:01 -0400
commit182683e955af4dd2324427129f3b90558d644066 (patch)
treeba963c139a469828833fb49a9ff06d3353af4be1 /drivers/edac
parent5281f94ae7f54d2d1a48dbc10223fd12d2aea716 (diff)
downloadlinux-182683e955af4dd2324427129f3b90558d644066.tar.gz
drivers/rtc/class.c: initialize rtc name early
In some error cases RTC name is used before it is initialized:

	rtc-rs5c372 0-0032: clock needs to be set
	rtc-rs5c372 0-0032: rs5c372b found, 24hr, driver version 0.6
	rtc (null): read_time: fail to read
	rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0

Fix by initializing the name early.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
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/edac')
0 files changed, 0 insertions, 0 deletions