From: Bartosz Golaszewski Date: Mon, 19 Mar 2018 09:17:09 +0000 (+0100) Subject: eeprom: at24: don't check if byte_len is a power of 2 X-Git-Tag: rel_imx_4.19.35_1.1.0~10398^2~20 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=7c7f428eda52bbd72e8bef55298e5156f3e0ca9e;p=linux.git eeprom: at24: don't check if byte_len is a power of 2 We support certain models the size of which is not a power of 2. This is not a reason to emit a warning. Signed-off-by: Bartosz Golaszewski Tested-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 001d784995d8..d68dc0d0b845 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -553,9 +553,6 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id) at24_get_pdata(&client->dev, &chip); } - if (!is_power_of_2(chip.byte_len)) - dev_warn(&client->dev, - "byte_len looks suspicious (no power of 2)!\n"); if (!chip.page_size) { dev_err(&client->dev, "page_size must not be 0!\n"); return -EINVAL;