diff options
Diffstat (limited to 'drivers/video/matrox/matroxfb_base.c')
-rw-r--r-- | drivers/video/matrox/matroxfb_base.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c index 4a57dabb77d4..7acf01c181ee 100644 --- a/drivers/video/matrox/matroxfb_base.c +++ b/drivers/video/matrox/matroxfb_base.c | |||
@@ -2277,10 +2277,13 @@ static void __init matroxfb_init_params(void) { | |||
2277 | } | 2277 | } |
2278 | } | 2278 | } |
2279 | 2279 | ||
2280 | static void __init matrox_init(void) { | 2280 | static int __init matrox_init(void) { |
2281 | int err; | ||
2282 | |||
2281 | matroxfb_init_params(); | 2283 | matroxfb_init_params(); |
2282 | pci_register_driver(&matroxfb_driver); | 2284 | err = pci_register_driver(&matroxfb_driver); |
2283 | dev = -1; /* accept all new devices... */ | 2285 | dev = -1; /* accept all new devices... */ |
2286 | return err; | ||
2284 | } | 2287 | } |
2285 | 2288 | ||
2286 | /* **************************** exit-time only **************************** */ | 2289 | /* **************************** exit-time only **************************** */ |
@@ -2437,6 +2440,7 @@ static int __initdata initialized = 0; | |||
2437 | static int __init matroxfb_init(void) | 2440 | static int __init matroxfb_init(void) |
2438 | { | 2441 | { |
2439 | char *option = NULL; | 2442 | char *option = NULL; |
2443 | int err = 0; | ||
2440 | 2444 | ||
2441 | DBG(__FUNCTION__) | 2445 | DBG(__FUNCTION__) |
2442 | 2446 | ||
@@ -2448,11 +2452,11 @@ static int __init matroxfb_init(void) | |||
2448 | return -ENXIO; | 2452 | return -ENXIO; |
2449 | if (!initialized) { | 2453 | if (!initialized) { |
2450 | initialized = 1; | 2454 | initialized = 1; |
2451 | matrox_init(); | 2455 | err = matrox_init(); |
2452 | } | 2456 | } |
2453 | hotplug = 1; | 2457 | hotplug = 1; |
2454 | /* never return failure, user can hotplug matrox later... */ | 2458 | /* never return failure, user can hotplug matrox later... */ |
2455 | return 0; | 2459 | return err; |
2456 | } | 2460 | } |
2457 | 2461 | ||
2458 | module_init(matroxfb_init); | 2462 | module_init(matroxfb_init); |