From 666fea80ee365a69a65e828c19349d23d0500713 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 28 Sep 2018 15:56:36 +0200 Subject: hello driver: add x86 support Supporting x86 allows us to quickly show the hello driver in action directly from the x86 trainer image. It also shows how platform devices can be added on architectures that do not support device trees. Signed-off-by: John Ogness --- .../drivers/modules/hellodriver/patch-add-sysfs.diff | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff') diff --git a/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff b/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff index 703b6e0..3e792fb 100644 --- a/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff +++ b/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff @@ -1,6 +1,6 @@ --- a/hello.c 2016-06-08 20:21:26.751180497 +0200 +++ b/hello.c 2016-06-08 20:19:31.655178050 +0200 -@@ -76,6 +76,30 @@ +@@ -76,6 +76,30 @@ static const struct file_operations hello_fops = { .write = hello_write, }; @@ -31,7 +31,7 @@ static int hello_probe(struct platform_device *pdev) { struct hello_dev *hello; -@@ -178,6 +202,8 @@ +@@ -186,6 +210,8 @@ static int __init hello_init(void) goto err_out1; } @@ -40,9 +40,3 @@ ret = platform_driver_register(&hello_driver); if (ret != 0) goto err_out2; -@@ -206,4 +232,4 @@ - MODULE_AUTHOR("John Ogness "); - MODULE_DESCRIPTION("a great module for hello-ing!"); - MODULE_LICENSE("GPL v2"); --MODULE_VERSION("20160607"); -+MODULE_VERSION("20160608"); -- cgit v1.2.3