1 /*****************************************************************************
3 * Module Name: ec_osl.c
6 *****************************************************************************/
9 * Copyright (C) 2000, 2001 Andrew Grover
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include <linux/kernel.h>
28 #include <linux/module.h>
29 #include <linux/init.h>
30 #include <linux/types.h>
31 #include <linux/proc_fs.h>
37 MODULE_AUTHOR("Andrew Grover");
38 MODULE_DESCRIPTION("ACPI Component Architecture (CA) - Embedded Controller Driver");
39 MODULE_LICENSE("GPL");
41 extern struct proc_dir_entry *bm_proc_root;
44 /****************************************************************************
46 * FUNCTION: ec_osl_init
52 * DESCRIPTION: Module initialization.
54 ****************************************************************************/
59 acpi_status status = AE_OK;
61 /* abort if no busmgr */
65 status = ec_initialize();
67 return (ACPI_SUCCESS(status)) ? 0 : -ENODEV;
70 /****************************************************************************
72 * FUNCTION: ec_osl_cleanup
78 * DESCRIPTION: Module cleanup.
80 ****************************************************************************/
90 module_init(ec_osl_init);
91 module_exit(ec_osl_cleanup);