summaryrefslogtreecommitdiff
path: root/schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-09-28 15:56:36 +0200
committerJohn Ogness <john.ogness@linutronix.de>2018-09-28 15:56:36 +0200
commit666fea80ee365a69a65e828c19349d23d0500713 (patch)
tree5fb64130e54edaca7ae3ae1bbb35602d8e420144 /schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff
parentbd9f17af0eb9f7dfba48c92f469ef15fe0a340c4 (diff)
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 <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff')
-rw-r--r--schulung_tools/drivers/modules/hellodriver/patch-add-sysfs.diff10
1 files changed, 2 insertions, 8 deletions
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 <john.ogness@linutronix.de>");
- MODULE_DESCRIPTION("a great module for hello-ing!");
- MODULE_LICENSE("GPL v2");
--MODULE_VERSION("20160607");
-+MODULE_VERSION("20160608");