|
@@ -347,6 +347,7 @@ static int at25_probe(struct spi_device *spi)
|
|
* that's sensitive for read and/or write, like ethernet addresses,
|
|
* that's sensitive for read and/or write, like ethernet addresses,
|
|
* security codes, board-specific manufacturing calibrations, etc.
|
|
* security codes, board-specific manufacturing calibrations, etc.
|
|
*/
|
|
*/
|
|
|
|
+ sysfs_bin_attr_init(&at25->bin);
|
|
at25->bin.attr.name = "eeprom";
|
|
at25->bin.attr.name = "eeprom";
|
|
at25->bin.attr.mode = S_IRUSR;
|
|
at25->bin.attr.mode = S_IRUSR;
|
|
at25->bin.read = at25_bin_read;
|
|
at25->bin.read = at25_bin_read;
|