From 64af41d3db0098149f8d60f92f05488d00c3f6d3 Mon Sep 17 00:00:00 2001 From: Naresh G Solanki Date: Tue, 5 Jun 2018 22:51:50 +0530 Subject: [PATCH] google/chromeec: Set proper dev ops For enable_resource & set_resource, use default DEVICE_NOOP so that they are not reported as missing during enumeration. BUG=None BRANCH=None TEST= Build & boot soraka. Change-Id: I0fcfb8df39c6313c8a5bab5b780a8ffa7531d210 Signed-off-by: Naresh G Solanki Reviewed-on: https://review.coreboot.org/26869 Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/ec/google/chromeec/ec_lpc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ec/google/chromeec/ec_lpc.c b/src/ec/google/chromeec/ec_lpc.c index 42a18e4a0e..3078c220b6 100644 --- a/src/ec/google/chromeec/ec_lpc.c +++ b/src/ec/google/chromeec/ec_lpc.c @@ -459,15 +459,11 @@ static void lpc_ec_read_resources(struct device *dev) res->flags = IORESOURCE_IO | IORESOURCE_ASSIGNED | IORESOURCE_FIXED; } -static void lpc_ec_enable_resources(struct device *dev) -{ - /* Nothing, but this function avoids an error on serial console. */ -} - static struct device_operations ops = { .init = lpc_ec_init, .read_resources = lpc_ec_read_resources, - .enable_resources = lpc_ec_enable_resources + .enable_resources = DEVICE_NOOP, + .set_resources = DEVICE_NOOP }; static struct pnp_info pnp_dev_info[] = {