Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile error for linux 6.10.4 #486

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions module/evdi_platform_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int evdi_platform_device_probe(struct platform_device *pdev)
return PTR_ERR_OR_ZERO(dev);
}

#if KERNEL_VERSION(6, 10, 0) >= LINUX_VERSION_CODE
#if KERNEL_VERSION(6, 10, 4) >= LINUX_VERSION_CODE
int evdi_platform_device_remove(struct platform_device *pdev)
#else
void evdi_platform_device_remove(struct platform_device *pdev)
Expand All @@ -97,7 +97,7 @@ void evdi_platform_device_remove(struct platform_device *pdev)

evdi_drm_device_remove(data->drm_dev);
kfree(data);
#if KERNEL_VERSION(6, 10, 0) >= LINUX_VERSION_CODE
#if KERNEL_VERSION(6, 10, 4) >= LINUX_VERSION_CODE
return 0;
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion module/evdi_platform_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct platform_device *evdi_platform_dev_create(struct platform_device_info *in
void evdi_platform_dev_destroy(struct platform_device *dev);

int evdi_platform_device_probe(struct platform_device *pdev);
#if KERNEL_VERSION(6, 10, 0) >= LINUX_VERSION_CODE
#if KERNEL_VERSION(6, 10, 4) >= LINUX_VERSION_CODE
int evdi_platform_device_remove(struct platform_device *pdev);
#else
void evdi_platform_device_remove(struct platform_device *pdev);
Expand Down