From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] adding gpmc configuration functions, west bridge related Date: Tue, 21 Dec 2010 12:46:51 -0800 Message-ID: <20101221204651.GM5829@atomide.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Sutharsan R Cc: greg@kroah.com, linux-arm@vger.kernel.org, srmt@cypress.com, david.cross@cypress.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org List-Id: linux-omap@vger.kernel.org * Sutharsan R [101220 18:41]: > This patch adds and exports gpmc configuration functions. > 'gpmc' configuration functions will be used by > westbridge device controller driver in staging tree. > This patch is part of the work to get westbridge device controller driver > out of staging tree. Looks good in general.. > +EXPORT_SYMBOL(cywb_pnand_platform_retime); But this you should not need. I know tusb6010 is still doing that, but you can pass it in the platform_data and then there's no need to export it. Then in your driver you can do: if (xxxxx->retime) xxxxx->retime(123); That way the driver will stay generic. The set_power functions are doing that in drivers/usb/musb if you need examples. Also, this will need a slight update based on Adrian Hunter's patch "OMAP2/3: GPMC: put sync_clk value in picoseconds instead of nanosecond" that I'll be queuing. Regards, Tony