diff --git a/Chapter02/helloworld-params.c b/Chapter02/helloworld-params.c index 1aeb62a..5def347 100644 --- a/Chapter02/helloworld-params.c +++ b/Chapter02/helloworld-params.c @@ -17,7 +17,7 @@ MODULE_PARM_DESC(mystr,"this is my char pointer variable"); MODULE_PARM_DESC(myarr,"this is my array of int"); MODULE_INFO(my_field_name, "What eeasy value"); -static int __init hellowolrd_init(void) { +static int __init helloworld_init(void) { pr_info("Hello world with parameters!\n"); pr_info("The *mystr* parameter: %s\n", mystr); pr_info("The *myint* parameter: %d\n", myint); @@ -25,11 +25,11 @@ static int __init hellowolrd_init(void) { return 0; } -static void __exit hellowolrd_exit(void) { +static void __exit helloworld_exit(void) { pr_info("End of the world\n"); } -module_init(hellowolrd_init); -module_exit(hellowolrd_exit); +module_init(helloworld_init); +module_exit(helloworld_exit); MODULE_AUTHOR("John Madieu "); MODULE_LICENSE("GPL"); diff --git a/Chapter02/helloworld.c b/Chapter02/helloworld.c index 2b021a9..56fa23b 100644 --- a/Chapter02/helloworld.c +++ b/Chapter02/helloworld.c @@ -5,16 +5,16 @@ #include #include -static int __init hellowolrd_init(void) { +static int __init helloworld_init(void) { pr_info("Hello world!\n"); return 0; } -static void __exit hellowolrd_exit(void) { +static void __exit helloworld_exit(void) { pr_info("End of the world\n"); } -module_init(hellowolrd_init); -module_exit(hellowolrd_exit); +module_init(helloworld_init); +module_exit(helloworld_exit); MODULE_AUTHOR("John Madieu "); MODULE_LICENSE("GPL"); diff --git a/Chapter16/gpio/gpio-legacy-module.c b/Chapter16/gpio/gpio-legacy-module.c index 3b333a3..0f4ba63 100644 --- a/Chapter16/gpio/gpio-legacy-module.c +++ b/Chapter16/gpio/gpio-legacy-module.c @@ -26,7 +26,7 @@ static irqreturn_t btn1_pushed_irq_handler(int irq, void *dev_id) return IRQ_HANDLED; } -static int __init hellowolrd_init(void) +static int __init helloworld_init(void) { int retval; @@ -72,7 +72,7 @@ static int __init hellowolrd_init(void) return 0; } -static void __exit hellowolrd_exit(void) +static void __exit helloworld_exit(void) { free_irq(irq, NULL); gpio_free(GPIO_LED_RED); @@ -84,7 +84,7 @@ static void __exit hellowolrd_exit(void) } -module_init(hellowolrd_init); -module_exit(hellowolrd_exit); +module_init(helloworld_init); +module_exit(helloworld_exit); MODULE_AUTHOR("John Madieu "); MODULE_LICENSE("GPL");