summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaresh G Solanki <naresh.solanki@intel.com>2018-06-05 22:51:50 +0530
committerPatrick Georgi <pgeorgi@google.com>2018-06-07 06:37:12 +0000
commit64af41d3db0098149f8d60f92f05488d00c3f6d3 (patch)
treebc11412cf9e0a5badf8b811ad7dc35f9af944abf /src
parente99a718e83e4332822c6d362799a2a0c9c9c4546 (diff)
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 <naresh.solanki@intel.com> Reviewed-on: https://review.coreboot.org/26869 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/chromeec/ec_lpc.c8
1 files 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[] = {