Revert "nvmem: core: fix return value"
This reverts commite953810345which is commit0c4862b1c1upstream. It breaks the Android kernel api, and isn't even really needed in the 5.10.y kernel tree yet, as there are no users of the new field. So revert it for now. If it is needed, it can be brought back in an abi-safe way in the future. Bug: 161946584 Change-Id: I4e335c73a46ba291c790e54f40350a754ff6376b Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
0caf8151c2
commit
365c551e77
1 changed files with 0 additions and 1 deletions
|
|
@ -638,7 +638,6 @@ struct nvmem_device *nvmem_register(const struct nvmem_config *config)
|
|||
GPIOD_OUT_HIGH);
|
||||
if (IS_ERR(nvmem->wp_gpio)) {
|
||||
rval = PTR_ERR(nvmem->wp_gpio);
|
||||
nvmem->wp_gpio = NULL;
|
||||
goto err_put_device;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue