Commit d07b56b3 authored by Wolfram Sang's avatar Wolfram Sang Committed by Jean Delvare
Browse files

at24: Init dynamic bin_attribute structures

Commit 6992f533

 introduced this requirement.

Reported-by: default avatarAlbrecht Dress <>
Signed-off-by: default avatarWolfram Sang <>
Signed-off-by: default avatarEric W. Biederman <>
Signed-off-by: default avatarJean Delvare <>
parent e77482d7
......@@ -505,6 +505,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id)
* Export the EEPROM bytes through sysfs, since that's convenient.
* By default, only root should see the data (maybe passwords etc)
at24-> = "eeprom";
at24->bin.attr.mode = chip.flags & AT24_FLAG_IRUGO ? S_IRUGO : S_IRUSR;
at24-> = at24_bin_read;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment