via_core_init() won't exit the driver when pci_register_driver() failed.
Exit the viafb-i2c and the viafb-gpio in failed path to prevent error.
VIA Graphics Integration Chipset framebuffer 2.4 initializing
Error: Driver 'viafb-i2c' is already registered, aborting...
Error: Driver 'viafb-gpio' is already registered, aborting...
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| accel.c | ||
| accel.h | ||
| chip.h | ||
| debug.h | ||
| dvi.c | ||
| dvi.h | ||
| global.c | ||
| global.h | ||
| hw.c | ||
| hw.h | ||
| ioctl.c | ||
| ioctl.h | ||
| lcd.c | ||
| lcd.h | ||
| share.h | ||
| tblDPASetting.c | ||
| tblDPASetting.h | ||
| via-core.c | ||
| via-gpio.c | ||
| via_aux.c | ||
| via_aux.h | ||
| via_aux_ch7301.c | ||
| via_aux_edid.c | ||
| via_aux_sii164.c | ||
| via_aux_vt1621.c | ||
| via_aux_vt1622.c | ||
| via_aux_vt1625.c | ||
| via_aux_vt1631.c | ||
| via_aux_vt1632.c | ||
| via_aux_vt1636.c | ||
| via_clock.c | ||
| via_clock.h | ||
| via_i2c.c | ||
| via_modesetting.c | ||
| via_modesetting.h | ||
| via_utility.c | ||
| via_utility.h | ||
| viafbdev.c | ||
| viafbdev.h | ||
| viamode.c | ||
| viamode.h | ||
| vt1636.c | ||
| vt1636.h | ||