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>
This commit is contained in:
parent
e99a718e83
commit
64af41d3db
|
@ -459,15 +459,11 @@ static void lpc_ec_read_resources(struct device *dev)
|
||||||
res->flags = IORESOURCE_IO | IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
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 = {
|
static struct device_operations ops = {
|
||||||
.init = lpc_ec_init,
|
.init = lpc_ec_init,
|
||||||
.read_resources = lpc_ec_read_resources,
|
.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[] = {
|
static struct pnp_info pnp_dev_info[] = {
|
||||||
|
|
Loading…
Reference in New Issue