patch-2.1.36 linux/drivers/char/apm_bios.c
Next file: linux/drivers/char/atarimouse.c
Previous file: linux/drivers/char/amigamouse.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Tue Apr 22 22:42:47 1997
- Orig file:
v2.1.35/linux/drivers/char/apm_bios.c
- Orig date:
Fri Apr 4 08:52:18 1997
diff -u --recursive --new-file v2.1.35/linux/drivers/char/apm_bios.c linux/drivers/char/apm_bios.c
@@ -73,6 +73,7 @@
#endif
#include <linux/miscdevice.h>
#include <linux/apm_bios.h>
+#include <linux/init.h>
EXPORT_SYMBOL(apm_register_callback);
EXPORT_SYMBOL(apm_unregister_callback);
@@ -451,7 +452,7 @@
#ifdef CONFIG_APM_DO_ENABLE
/* Called by apm_setup if apm_enabled will be true. */
-static int apm_enable_power_management(void)
+static inline int apm_enable_power_management(void)
{
u_short error;
@@ -474,7 +475,7 @@
return APM_SUCCESS;
}
-static int apm_engage_power_management(u_short device)
+static inline int apm_engage_power_management(u_short device)
{
u_short error;
@@ -1059,7 +1060,7 @@
}
#endif
-void apm_bios_init(void)
+__initfunc(void apm_bios_init(void))
{
unsigned short bx;
unsigned short cx;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov