summaryrefslogtreecommitdiff
path: root/drivers/misc/eeprom/at24.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2018-03-19 12:17:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-23 18:25:00 +0300
commit7c7f428eda52bbd72e8bef55298e5156f3e0ca9e (patch)
tree2d124009809d75dbe970b7b5695609f21be709a7 /drivers/misc/eeprom/at24.c
parent53998fa89a5bfa16d279f48dac3a99e4bd0d0dd6 (diff)
downloadlinux-7c7f428eda52bbd72e8bef55298e5156f3e0ca9e.tar.xz
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 <brgl@bgdev.pl> Tested-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/eeprom/at24.c')
-rw-r--r--drivers/misc/eeprom/at24.c3
1 files changed, 0 insertions, 3 deletions
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;