diff options
author | Thadeu Lima de Souza Cascardo <[email protected]> | 2009-07-29 15:02:13 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-07-29 19:10:35 -0700 |
commit | 659098141d02eb8e3545be8969d262e02d2f3f98 (patch) | |
tree | cd6d7e54c7ad07b6e4428db083451fafe78e5ee5 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | 57c5c28dbc835c67a9c23912bab56b7f165e7715 (diff) |
rtc: mark if rtc-cmos drivers were successfully registered
rtc-cmos has two drivers, one PNP and one platform. When PNP has not
succeeded probing, platform is registered. However, it tries to
unregister both drivers unconditionally, instead of only unregistering
those that were successfully registered. This causes runtime warnings to
be emitted from the driver core code.
Fix this with a boolean variable for each driver indicating whether
registering was successful.
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Kay Sievers <[email protected]>
Cc: Greg KH <[email protected]>
Cc: Ozan Caglayan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions