Hello again,

On Thu, Sep 15, 2011 at 09:52:43PM +0200, Uwe Kleine-König wrote:
> diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
> index 8ac6542..fa594d6 100644
> --- a/drivers/spi/spi-imx.c
> +++ b/drivers/spi/spi-imx.c
> @@ -786,9 +786,11 @@ static int __devinit spi_imx_probe(struct 
> platform_device *pdev)
>               int cs_gpio = of_get_named_gpio(np, "cs-gpios", i);
>               if (cs_gpio < 0)
>                       cs_gpio = mxc_platform_info->chipselect[i];
> +
> +             spi_imx->chipselect[i] = cs_gpio;
>               if (cs_gpio < 0)
>                       continue;
> -             spi_imx->chipselect[i] = cs_gpio;
> +
>               ret = gpio_request(spi_imx->chipselect[i], DRIVER_NAME);
>               if (ret) {
>                       while (i > 0) {
Having said that I wonder how to specify to use an internal chipselect
via DT?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to