The very same check is done when calling i2c_new_device(). Remove it
here to avoid code duplication.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
info.flags |= I2C_CLIENT_SLAVE;
}
info.flags |= I2C_CLIENT_SLAVE;
}
- if (i2c_check_addr_validity(addr, info.flags)) {
- dev_err(&adap->dev, "of_i2c: invalid addr=%x on %pOF\n",
- addr, node);
- return ERR_PTR(-EINVAL);
- }
-
info.addr = addr;
info.archdata = &dev_ad;
info.of_node = of_node_get(node);
info.addr = addr;
info.archdata = &dev_ad;
info.of_node = of_node_get(node);