1*4882a593Smuzhiyun /****************************************************************************** 2*4882a593Smuzhiyun * 3*4882a593Smuzhiyun * Copyright (C) 2011 Intel Corporation. All rights reserved. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify 6*4882a593Smuzhiyun * it under the terms of the GNU General Public License as published by 7*4882a593Smuzhiyun * the Free Software Foundation; version 2 of the License. 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * This program is distributed in the hope that it will be useful, 10*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 11*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 12*4882a593Smuzhiyun * the GNU General Public License for more details. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * You should have received a copy of the GNU General Public License 15*4882a593Smuzhiyun * along with this program; if not, write to the Free Software 16*4882a593Smuzhiyun * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17*4882a593Smuzhiyun * 18*4882a593Smuzhiyun *****************************************************************************/ 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #include <linux/module.h> 21*4882a593Smuzhiyun hello_init(void)22*4882a593Smuzhiyunstatic int __init hello_init(void) 23*4882a593Smuzhiyun { 24*4882a593Smuzhiyun pr_info("Hello World!\n"); 25*4882a593Smuzhiyun return 0; 26*4882a593Smuzhiyun } 27*4882a593Smuzhiyun hello_exit(void)28*4882a593Smuzhiyunstatic void __exit hello_exit(void) 29*4882a593Smuzhiyun { 30*4882a593Smuzhiyun pr_info("Goodbye Cruel World!\n"); 31*4882a593Smuzhiyun } 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun module_init(hello_init); 34*4882a593Smuzhiyun module_exit(hello_exit); 35*4882a593Smuzhiyun MODULE_LICENSE("GPL"); 36