linux-next: build warning after merge of the at24 tree

From: Stephen Rothwell
Date: Fri Jan 10 2020 - 00:34:53 EST


Hi all,

After merging the at24 tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

drivers/nvmem/core.c: In function 'nvmem_register':
drivers/nvmem/core.c:354:10: warning: returning 'long int' from a function with return type 'struct nvmem_device *' makes pointer from integer without a cast [-Wint-conversion]
354 | return PTR_ERR(nvmem->wp_gpio);
| ^~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

2a127da461a9 ("nvmem: add support for the write-protect pin")

--
Cheers,
Stephen Rothwell

Attachment: pgp1hMtYPSO0v.pgp
Description: OpenPGP digital signature