From: Thadeu Lima de Souza Cascardo Date: Tue, 8 Dec 2009 09:12:03 +0000 (-0200) Subject: No character device any more. We already have a better sample out there. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fkernel%2Fsamples%2F03.proc%2F.git;a=commitdiff_plain;h=beda26d1f93a4087bc858e5c95f3b8fd616ba1e2 No character device any more. We already have a better sample out there. --- diff --git a/Makefile b/Makefile index 1c06ef1..8569a8c 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1 @@ -obj-m += hello_procfs.o -obj-m += hello_char.o +obj-m := hello_procfs.o diff --git a/hello_char.c b/hello_char.c deleted file mode 100644 index cfc008c..0000000 --- a/hello_char.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2009 Thadeu Lima de Souza Cascardo - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - - -#include - -MODULE_AUTHOR("Thadeu Lima de Souza Cascardo "); -MODULE_LICENSE("GPL"); - -static int hello_char_init(void) -{ - return 0; -} - -static void hello_char_exit(void) -{ -} - -module_init(hello_char_init); -module_exit(hello_char_exit);