diff options
author | Viresh Kumar <[email protected]> | 2012-03-23 15:02:30 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-03-23 16:58:39 -0700 |
commit | ee6c54ca64416c75aa6f5021e139f270192bae49 (patch) | |
tree | 32c16e2747c4414bdb52939909e071fa07ba7fae /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 131f8b75f1c00a5a822ff2103db588466e942490 (diff) |
rtc/rtc-spear: call platform_set_drvdata() before registering rtc device
rtc_device_register() calls rtc-spear routines internally. These
routines call dev_get_drvdata() to get struct spear_rtc_config.
Currently, platform_set_drvdata is called after rtc device is
registered. This causes system to crash, as dev_get_drvdata returns
NULL.
For this we need to call platform_set_drvdata() before registering rtc
device. This requires further cleanup, that leads to removal of
dev_set_drvdata on rtc->dev, which was just not required at all.
Also, we change the parameter to request_irq and pass pointer to config
instead of pointer to rtc struct.
This patch brings all above changes.
Signed-off-by: Viresh Kumar <[email protected]>
Cc: Shiraz Hashim <[email protected]>
Cc: Deepak Sikri <[email protected]>
Acked-by: Rajeev Kumar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions