From 73beb2009a26d8dcb13cbd2dfa987e0d4ac7ebf8 Mon Sep 17 00:00:00 2001 From: unixpunk <30475586+unixpunk@users.noreply.github.com> Date: Sun, 21 Jan 2024 10:20:44 -0600 Subject: [PATCH] Update smi_stream_dev.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes building on DragonOS_Pi64 - not sure if it breaks other OSes or not, though. /home/ubuntu/cariboulite/driver/build/smi_stream_dev.c:1319:28: error: too many arguments to function ‘class_create’ 1319 | smi_stream_class = class_create(THIS_MODULE, DEVICE_NAME); --- driver/smi_stream_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/smi_stream_dev.c b/driver/smi_stream_dev.c index a4d4fa22..a708dc33 100644 --- a/driver/smi_stream_dev.c +++ b/driver/smi_stream_dev.c @@ -1316,7 +1316,7 @@ static int smi_stream_dev_probe(struct platform_device *pdev) } // Create sysfs entries with "smi-stream-dev" - smi_stream_class = class_create(THIS_MODULE, DEVICE_NAME); + smi_stream_class = class_create(DEVICE_NAME); ptr_err = smi_stream_class; if (IS_ERR(ptr_err)) {