Commit 00541475 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] replace MOD_INC_USE_COUNT in cyber2000fb

From: Christoph Hellwig <hch@lst.de>

This driver is unloadable for the pci case, but not if vlb cards are found so
we can't use the module_exit removal to lock it into memory.

Replace the MOD_INC_USE_COUNT with __module_get in it's module_init routine.
parent e229be85
...@@ -1721,7 +1721,7 @@ int __init cyber2000fb_init(void) ...@@ -1721,7 +1721,7 @@ int __init cyber2000fb_init(void)
err = cyberpro_vl_probe(); err = cyberpro_vl_probe();
if (!err) { if (!err) {
ret = 0; ret = 0;
MOD_INC_USE_COUNT; __module_get(THIS_MODULE);
} }
#endif #endif
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment