[BL training-materials-updates] kernel lab: fix file name and checkpatch.pl warnings
Michael Opdenacker
michael.opdenacker at bootlin.com
Sun Nov 25 09:31:27 CET 2018
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=90864584a245249f788a022eac2e8e2bd39f8916
>---------------------------------------------------------------
commit 90864584a245249f788a022eac2e8e2bd39f8916
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Sun Nov 25 09:31:27 2018 +0100
kernel lab: fix file name and checkpatch.pl warnings
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
90864584a245249f788a022eac2e8e2bd39f8916
.../modules/nfsroot/root/serial/feserial.c | 30 ----------------------
.../modules/nfsroot/root/serial/serial.c | 30 ++++++++++++++++++++++
2 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/lab-data/linux-kernel/modules/nfsroot/root/serial/feserial.c b/lab-data/linux-kernel/modules/nfsroot/root/serial/feserial.c
deleted file mode 100644
index 0804f34..0000000
--- a/lab-data/linux-kernel/modules/nfsroot/root/serial/feserial.c
+++ /dev/null
@@ -1,30 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-#include <linux/init.h>
-#include <linux/module.h>
-#include <linux/platform_device.h>
-
-/* Add your code here */
-
-static int serial_probe(struct platform_device *pdev)
-{
- pr_info("Called serial_probe\n");
- return 0;
-}
-
-static int serial_remove(struct platform_device *pdev)
-{
- pr_info("Called serial_remove\n");
- return 0;
-}
-
-static struct platform_driver serial_driver = {
- .driver = {
- .name = "serial",
- .owner = THIS_MODULE,
- },
- .probe = serial_probe,
- .remove = serial_remove,
-};
-
-module_platform_driver(serial_driver);
-MODULE_LICENSE("GPL");
diff --git a/lab-data/linux-kernel/modules/nfsroot/root/serial/serial.c b/lab-data/linux-kernel/modules/nfsroot/root/serial/serial.c
new file mode 100644
index 0000000..eaff781
--- /dev/null
+++ b/lab-data/linux-kernel/modules/nfsroot/root/serial/serial.c
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+
+/* Add your code here */
+
+static int serial_probe(struct platform_device *pdev)
+{
+ pr_info("Called %s\n", __func__);
+ return 0;
+}
+
+static int serial_remove(struct platform_device *pdev)
+{
+ pr_info("Called %s\n", __func__);
+ return 0;
+}
+
+static struct platform_driver serial_driver = {
+ .driver = {
+ .name = "serial",
+ .owner = THIS_MODULE,
+ },
+ .probe = serial_probe,
+ .remove = serial_remove,
+};
+
+module_platform_driver(serial_driver);
+MODULE_LICENSE("GPL");
More information about the training-materials-updates
mailing list