From patchwork Thu Mar 11 00:57:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 84756 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2B1EUfb016963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Mar 2010 01:15:06 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NpWyl-0005u1-Sz; Thu, 11 Mar 2010 01:14:23 +0000 Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NpWyl-0005tv-5u for spi-devel-general@lists.sourceforge.net; Thu, 11 Mar 2010 01:14:23 +0000 X-ACL-Warn: Received: from metis.ext.pengutronix.de ([92.198.50.35]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NpWyj-0005Qp-Le for spi-devel-general@lists.sourceforge.net; Thu, 11 Mar 2010 01:14:23 +0000 Received: from themisto.ext.pengutronix.de ([92.198.50.58] helo=pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.69) (envelope-from ) id 1NpWim-0007Ai-RM; Thu, 11 Mar 2010 01:57:54 +0100 From: Wolfram Sang To: spi-devel-general@lists.sourceforge.net Date: Thu, 11 Mar 2010 01:57:42 +0100 Message-Id: <1268269062-24817-1-git-send-email-w.sang@pengutronix.de> X-Mailer: git-send-email 1.7.0 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 92.198.50.58 X-SA-Exim-Mail-From: w.sang@pengutronix.de X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on metis.extern.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=4.5 tests=AWL, BAYES_00 shortcircuit=no autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) X-PTX-Original-Recipient: spi-devel-general@lists.sourceforge.net X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. _SUMMARY_ X-Headers-End: 1NpWyj-0005Qp-Le Cc: David Brownell , "Eric W. Biederman" Subject: [spi-devel-general] [PATCH] misc/eeprom/at25: init dynamic bin_attribute structures X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 11 Mar 2010 01:15:07 +0000 (UTC) diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c index d902d81..13e3814 100644 --- a/drivers/misc/eeprom/at25.c +++ b/drivers/misc/eeprom/at25.c @@ -351,6 +351,7 @@ static int at25_probe(struct spi_device *spi) at25->bin.attr.mode = S_IRUSR; at25->bin.read = at25_bin_read; at25->mem.read = at25_mem_read; + sysfs_bin_attr_init(&at25->bin); at25->bin.size = at25->chip.byte_len; if (!(chip->flags & EE_READONLY)) {