diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2018-07-07 00:20:00 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-07-26 14:15:56 +0000 |
commit | 968ac7914dedd97659dfa944e48b28e10ba0ab96 (patch) | |
tree | cfe59ac1bf7ef12a2f1ed49e81e4f4cf0efa51a2 /src/ec/google | |
parent | 5af2deae92abd1258a752f29fbe48c91458706c2 (diff) | |
download | coreboot-968ac7914dedd97659dfa944e48b28e10ba0ab96.tar.xz |
ec/google: pass ops to pnp_enable_devices instead of LDN-specific override
Since ops was passed as override in the pnp_dev_info struct, the generic
pnp_ops that was passed to pnp_enable_devices was never used.
Change-Id: Id09c6cffb9a0cbbd9189c18801121449c9504422
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/27394
Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/google')
-rw-r--r-- | src/ec/google/chromeec/ec_lpc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ec/google/chromeec/ec_lpc.c b/src/ec/google/chromeec/ec_lpc.c index 1700bd6c46..f584630f54 100644 --- a/src/ec/google/chromeec/ec_lpc.c +++ b/src/ec/google/chromeec/ec_lpc.c @@ -465,13 +465,12 @@ static struct device_operations ops = { }; static struct pnp_info pnp_dev_info[] = { - { &ops, 0, 0, 0, } + { NULL, 0, 0, 0, } }; static void enable_dev(struct device *dev) { - pnp_enable_devices(dev, &pnp_ops, ARRAY_SIZE(pnp_dev_info), - pnp_dev_info); + pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info); } struct chip_operations ec_google_chromeec_ops = { |