From 8952de55cb4949969b09219fdf6b9b14f3b59b0c Mon Sep 17 00:00:00 2001 From: Seunghwan Kim Date: Mon, 18 May 2020 15:01:06 +0900 Subject: driver/i2c/max98390: Fix build error related to max98390 driver Fix coreboot build error with adding this driver BUG=b:149443429 BRANCH=None TEST=built without errors Signed-off-by: Seunghwan Kim Change-Id: I2d76ec72ca6ae9ac54ab05f15ea92beb645acd5c Reviewed-on: https://review.coreboot.org/c/coreboot/+/41496 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Furquan Shaikh --- src/drivers/i2c/max98390/max98390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/i2c/max98390/max98390.c b/src/drivers/i2c/max98390/max98390.c index c8d7699d0b..24c500bd2e 100644 --- a/src/drivers/i2c/max98390/max98390.c +++ b/src/drivers/i2c/max98390/max98390.c @@ -15,7 +15,7 @@ #define MAX98390_DP_INT(key, val) acpi_dp_add_integer(dp, "maxim," key, (val)) -static void max98390_fill_ssdt(struct device *dev) +static void max98390_fill_ssdt(const struct device *dev) { struct drivers_i2c_max98390_config *config = dev->chip_info; const char *scope = acpi_device_scope(dev); @@ -86,7 +86,7 @@ static struct device_operations max98390_ops = { .read_resources = noop_read_resources, .set_resources = noop_set_resources, .acpi_name = max98390_acpi_name, - .acpi_fill_ssdt_generator = max98390_fill_ssdt, + .acpi_fill_ssdt = max98390_fill_ssdt, }; static void max98390_enable(struct device *dev) -- cgit v1.2.3