Skip to content

Commit

Permalink
correct the kernel version of i2c_driver probe
Browse files Browse the repository at this point in the history
Signed-off-by: Beagle User <[email protected]>
  • Loading branch information
Beagle User authored and Beagle User committed Mar 28, 2024
1 parent 3b9076d commit 6a9a9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rtc-pcf8563w/rtc-pcf8563w.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ static const struct rtc_class_ops pcf8563_rtc_ops = {
// .alarm_irq_enable = pcf8563_irq_enable,
};

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 20)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
static int pcf8563_probe(struct i2c_client *client)
#else
static int pcf8563_probe(struct i2c_client *client, const struct i2c_device_id *id)
Expand Down

0 comments on commit 6a9a9ae

Please sign in to comment.