diff mbox

[V2] misc/eeprom/at25: init dynamic bin_attribute structures

Message ID 1268357629-12999-1-git-send-email-w.sang@pengutronix.de (mailing list archive)
State Not Applicable
Headers show

Commit Message

Wolfram Sang March 12, 2010, 1:33 a.m. UTC
None
diff mbox

Patch

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