Skip to content

Commit 5e1d90b

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 037dde4 commit 5e1d90b

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
@@ -834,11 +834,6 @@ static int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_nod
834834
if (addr && len == (2 * sizeof(u32))) {
835835
info.bit_offset = be32_to_cpup(addr++);
836836
info.nbits = be32_to_cpup(addr);
837-
if (info.bit_offset >= BITS_PER_BYTE || info.nbits < 1) {
838-
dev_err(dev, "nvmem: invalid bits on %pOF\n", child);
839-
of_node_put(child);
840-
return -EINVAL;
841-
}
842837
}
843838

844839
info.np = of_node_get(child);

0 commit comments

Comments
 (0)