Skip to content

Commit

Permalink
Update smi_stream_dev.c
Browse files Browse the repository at this point in the history
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);
  • Loading branch information
unixpunk committed Jan 21, 2024
1 parent 4d993d2 commit 73beb20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/smi_stream_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 73beb20

Please sign in to comment.