From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lo.gmane.org ([80.91.229.12]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QZJWk-0003by-Gf for linux-mtd@lists.infradead.org; Wed, 22 Jun 2011 09:15:15 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QZJWf-00059o-2b for linux-mtd@lists.infradead.org; Wed, 22 Jun 2011 11:15:09 +0200 Received: from 91.213.169.4 ([91.213.169.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 11:15:09 +0200 Received: from dbaryshkov by 91.213.169.4 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 11:15:09 +0200 To: linux-mtd@lists.infradead.org From: Dmitry Eremin-Solenikov Subject: Re: [PATCH v2 2/4] mtd: nand: convert printk() to pr_*() Date: Wed, 22 Jun 2011 09:12:37 +0000 (UTC) Message-ID: References: <1307544227.31223.115.camel@localhost> <1307557519-31269-1-git-send-email-computersforpeace@gmail.com> <1307605456.7374.35.camel@localhost> <1307635412.7374.128.camel@localhost> <1308717655.18119.19.camel@sauron> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Artem Bityutskiy wrote: > On Mon, 2011-06-13 at 11:24 -0700, Brian Norris wrote: >> I'm a little new to the Linux device model, so I'm not sure if it's >> safe and sensible to add lines to a driver's nand_probe function, >> like, for plat_nand.c: >> data->mtd.dev.driver = pdev->dev.driver; IIUC, we should not set driver, but it might be better to consult with more experienced DM hackers (like Greg Kroah-Hartman). >> data->mtd.dev.init_name = dev_name(&pdev->dev); > > I think so, I believe struct device was added to mtd by some non-MTD guy > to just make it complaint with one of interface changes which required > struct device. So please, go ahead and improve that a bit. -- With best wishes Dmitry