diff --git a/Makefile b/Makefile index c109adaa..f3d2c2e4 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,9 @@ ifeq ($(shell test $(LINUX_VERSION) -ge $(LINUX_VERSION_6_6); echo $$?),0) # Move probe to DAI Ops. export CONFIG_SND_SOC_MOVE_DAI_PROBE_TO_OPS=y subdir-ccflags-y += -DNV_SND_SOC_DAI_OPS_STRUCT_HAS_PROBE_ARG + +# probe_new is removed from i2c driver structure +subdir-ccflags-y += -DNV_I2C_LEGACY_PROBE_NEW_REMOVED endif ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y) diff --git a/drivers/hwmon/f75308.c b/drivers/hwmon/f75308.c index ba9fc2cf..bfb0e96c 100644 --- a/drivers/hwmon/f75308.c +++ b/drivers/hwmon/f75308.c @@ -1256,7 +1256,11 @@ static struct i2c_driver f75308_driver = { .of_match_table = of_match_ptr(f75308_match_table), }, .detect = f75308_detect, +#if defined(NV_I2C_LEGACY_PROBE_NEW_REMOVED) + .probe = f75308_probe, +#else .probe_new = f75308_probe, +#endif .remove = f75308_remove, .address_list = f75308_addr, .id_table = f75308_id,