lkml.org 
[lkml]   [2000]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drivers/char/drm gets __init/__exit

Hi

Patch is against 2.4.0-test11-pre2... subject tells rest...

Regards
--
Bartlomiej Zolnierkiewicz
<bkz@linux-ide.org>
diff -uNr linux-240t11p2/drivers/char/drm/ffb_drv.c linux/drivers/char/drm/ffb_drv.c
--- linux-240t11p2/drivers/char/drm/ffb_drv.c Tue Oct 3 00:17:32 2000
+++ linux/drivers/char/drm/ffb_drv.c Sat Nov 11 01:53:15 2000
@@ -244,7 +244,7 @@
};
}

-static int ffb_init_one(int prom_node, int instance)
+static int __init ffb_init_one(int prom_node, int instance)
{
struct linux_prom64_registers regs[2*PROMREG_MAX];
drm_device_t *dev;
@@ -305,7 +305,7 @@
return 0;
}

-static int ffb_init_dev_table(void)
+static int __init ffb_init_dev_table(void)
{
int root, node;
int total = 0;
@@ -324,7 +324,7 @@
return 0;
}

-int ffb_init(void)
+int __init ffb_init(void)
{
int root, node, instance, ret;

@@ -345,7 +345,7 @@
return 0;
}

-void ffb_cleanup(void)
+void __exit ffb_cleanup(void)
{
int instance;

diff -uNr linux-240t11p2/drivers/char/drm/gamma_drv.c linux/drivers/char/drm/gamma_drv.c
--- linux-240t11p2/drivers/char/drm/gamma_drv.c Tue Oct 3 14:27:25 2000
+++ linux/drivers/char/drm/gamma_drv.c Sat Nov 11 01:51:14 2000
@@ -339,7 +339,7 @@
/* gamma_init is called via init_module at module load time, or via
* linux/init/main.c (this is not currently supported). */

-static int gamma_init(void)
+static int __init gamma_init(void)
{
int retcode;
drm_device_t *dev = &gamma_device;
@@ -380,7 +380,7 @@

/* gamma_cleanup is called via cleanup_module at module unload time. */

-static void gamma_cleanup(void)
+static void __exit gamma_cleanup(void)
{
drm_device_t *dev = &gamma_device;

diff -uNr linux-240t11p2/drivers/char/drm/i810_drv.c linux/drivers/char/drm/i810_drv.c
--- linux-240t11p2/drivers/char/drm/i810_drv.c Fri Nov 10 14:28:42 2000
+++ linux/drivers/char/drm/i810_drv.c Sat Nov 11 01:49:53 2000
@@ -338,7 +338,7 @@
/* i810_init is called via init_module at module load time, or via
* linux/init/main.c (this is not currently supported). */

-static int i810_init(void)
+static int __init i810_init(void)
{
int retcode;
drm_device_t *dev = &i810_device;
@@ -397,7 +397,7 @@

/* i810_cleanup is called via cleanup_module at module unload time. */

-static void i810_cleanup(void)
+static void __exit i810_cleanup(void)
{
drm_device_t *dev = &i810_device;

diff -uNr linux-240t11p2/drivers/char/drm/mga_drv.c linux/drivers/char/drm/mga_drv.c
--- linux-240t11p2/drivers/char/drm/mga_drv.c Fri Nov 10 14:28:42 2000
+++ linux/drivers/char/drm/mga_drv.c Sat Nov 11 01:45:52 2000
@@ -338,7 +338,7 @@
/* mga_init is called via init_module at module load time, or via
* linux/init/main.c (this is not currently supported). */

-static int mga_init(void)
+static int __init mga_init(void)
{
int retcode;
drm_device_t *dev = &mga_device;
@@ -398,7 +398,7 @@

/* mga_cleanup is called via cleanup_module at module unload time. */

-static void mga_cleanup(void)
+static void __exit mga_cleanup(void)
{
drm_device_t *dev = &mga_device;

diff -uNr linux-240t11p2/drivers/char/drm/r128_drv.c linux/drivers/char/drm/r128_drv.c
--- linux-240t11p2/drivers/char/drm/r128_drv.c Fri Nov 10 14:28:42 2000
+++ linux/drivers/char/drm/r128_drv.c Sat Nov 11 01:45:17 2000
@@ -323,7 +323,7 @@
/* r128_init is called via init_module at module load time, or via
* linux/init/main.c (this is not currently supported). */

-static int r128_init(void)
+static int __init r128_init(void)
{
int retcode;
drm_device_t *dev = &r128_device;
@@ -387,7 +387,7 @@

/* r128_cleanup is called via cleanup_module at module unload time. */

-static void r128_cleanup(void)
+static void __exit r128_cleanup(void)
{
drm_device_t *dev = &r128_device;

diff -uNr linux-240t11p2/drivers/char/drm/tdfx_drv.c linux/drivers/char/drm/tdfx_drv.c
--- linux-240t11p2/drivers/char/drm/tdfx_drv.c Fri Nov 10 14:28:42 2000
+++ linux/drivers/char/drm/tdfx_drv.c Sat Nov 11 01:43:07 2000
@@ -298,7 +298,7 @@
/* tdfx_init is called via init_module at module load time, or via
* linux/init/main.c (this is not currently supported). */

-static int tdfx_init(void)
+static int __init tdfx_init(void)
{
int retcode;
drm_device_t *dev = &tdfx_device;
@@ -346,7 +346,7 @@

/* tdfx_cleanup is called via cleanup_module at module unload time. */

-static void tdfx_cleanup(void)
+static void __exit tdfx_cleanup(void)
{
drm_device_t *dev = &tdfx_device;
\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.029 / U:0.924 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site