1 /****************************************************************************** 2 * 3 * Copyright (C) 2011 Intel Corporation. All rights reserved. 4 * 5 * SPDX-License-Identifier: GPL-2.0-only 6 * 7 *****************************************************************************/ 8 9 #include <linux/module.h> 10 11 static int __init hello_init(void) 12 { 13 pr_info("Hello World!\n"); 14 return 0; 15 } 16 17 static void __exit hello_exit(void) 18 { 19 pr_info("Goodbye Cruel World!\n"); 20 } 21 22 module_init(hello_init); 23 module_exit(hello_exit); 24 MODULE_LICENSE("GPL"); 25