Skip to content

Commit f84db17

Browse files
committed
Revert "nvmem: core: Print error on wrong bits DT property"
This reverts commit def3173. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 98f7e32 commit f84db17

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/nvmem/core.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -824,11 +824,6 @@ static int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_nod
824824
if (addr && len == (2 * sizeof(u32))) {
825825
info.bit_offset = be32_to_cpup(addr++);
826826
info.nbits = be32_to_cpup(addr);
827-
if (info.bit_offset >= BITS_PER_BYTE || info.nbits < 1) {
828-
dev_err(dev, "nvmem: invalid bits on %pOF\n", child);
829-
of_node_put(child);
830-
return -EINVAL;
831-
}
832827
}
833828

834829
info.np = of_node_get(child);

0 commit comments

Comments
 (0)