Harald Welte 109771a68b viafb: Fix various resource leaks during module_init()
The current code executed from module_init() in viafb does not have
proper error checking and [partial] resoure release paths in case
an error happens half way through driver initialization.

This patch adresses the most obvious of those issues, such as a
leftover i2c bus if module_init (and thus module load) fails.

[jc: fixed merge conflicts]
[jc: also restored -ENOMEM return on ioremap() fail]

Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: ScottFang@viatech.com.cn
Cc: JosephChan@via.com.tw
Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
2010-04-20 14:23:18 -06:00
..
2010-03-24 14:38:37 +01:00
2010-03-15 16:00:47 -07:00
2010-03-06 11:26:28 -08:00
2010-03-22 16:33:31 +01:00
2010-03-14 20:08:38 -04:00
2010-03-12 15:52:43 -08:00
2010-03-24 16:31:19 -07:00
2010-03-07 17:04:51 -08:00
2010-03-06 11:26:28 -08:00