blob: 6b73a795240de230ee8cdf2bf33b8993bd6027b5 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001/******************************************************************************
2 *
3 * Copyright (C) 2011 Intel Corporation. All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
12 * the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 *****************************************************************************/
19
20#include <linux/module.h>
21
Andrew Geissler5199d832021-09-24 16:47:35 -050022static int __init hello_init(void)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023{
Patrick Williams93c203f2021-10-06 16:15:23 -050024 pr_info("Hello World!\n");
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025 return 0;
26}
27
Andrew Geissler5199d832021-09-24 16:47:35 -050028static void __exit hello_exit(void)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029{
Patrick Williams93c203f2021-10-06 16:15:23 -050030 pr_info("Goodbye Cruel World!\n");
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031}
32
Andrew Geissler5199d832021-09-24 16:47:35 -050033module_init(hello_init);
34module_exit(hello_exit);
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035MODULE_LICENSE("GPL");