Skip to content

Commit

Permalink
4.5: Replace version number check with WACOM_DEVM_OR_RESET check
Browse files Browse the repository at this point in the history
The WACOM_DEVM_OR_RESET macro was introduced in a previous commit to fix
compilation of the 3.17 sources on RHEL 7.9. We might as well use this
macro in the 4.5 sources as well to make the two codebases more similar.

Signed-off-by: Jason Gerecke <[email protected]>
  • Loading branch information
jigpu committed Jun 8, 2023
1 parent acd58c1 commit 81387a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 4.5/wacom_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static bool wacom_is_using_usb_driver(struct hid_device *hdev)
#define wacom_is_using_usb_driver(hdev) hid_is_using_ll_driver(hdev, &usb_hid_driver)
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(4,6,0)
#ifndef WACOM_DEVM_OR_RESET
static int devm_add_action_or_reset(struct device *dev,
void (*action)(void *), void *data)
{
Expand Down

0 comments on commit 81387a5

Please sign in to comment.