Skip to content

Commit 9d75f8d

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 c8eef17 commit 9d75f8d

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
@@ -807,11 +807,6 @@ static int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_nod
807807
if (addr && len == (2 * sizeof(u32))) {
808808
info.bit_offset = be32_to_cpup(addr++);
809809
info.nbits = be32_to_cpup(addr);
810-
if (info.bit_offset >= BITS_PER_BYTE || info.nbits < 1) {
811-
dev_err(dev, "nvmem: invalid bits on %pOF\n", child);
812-
of_node_put(child);
813-
return -EINVAL;
814-
}
815810
}
816811

817812
info.np = of_node_get(child);

0 commit comments

Comments
 (0)