Hi Anatolij,

On Tue, Jul 27, 2010 at 12:59:38AM +0200, Anatolij Gustschin wrote:
> Signed-off-by: Anatolij Gustschin <[email protected]>
> ---
>  drivers/spi/mpc512x_psc_spi.c |   10 +++++++++-
>  1 files changed, 9 insertions(+), 1 deletions(-)

You should CC Grant Likely on this. He is now the de-facto maintainer of the 
SPI subsystem.

baruch

> diff --git a/drivers/spi/mpc512x_psc_spi.c b/drivers/spi/mpc512x_psc_spi.c
> index c8d69fc..39e5faf 100644
> --- a/drivers/spi/mpc512x_psc_spi.c
> +++ b/drivers/spi/mpc512x_psc_spi.c
> @@ -27,6 +27,7 @@
>  #include <linux/clk.h>
>  #include <linux/spi/spi.h>
>  #include <linux/fsl_devices.h>
> +#include <linux/of_spi.h>
>  #include <asm/mpc52xx_psc.h>
>  
>  struct mpc512x_psc_spi {
> @@ -511,6 +512,7 @@ static int __devinit mpc512x_psc_spi_of_probe(struct 
> of_device *op,
>       const u32 *regaddr_p;
>       u64 regaddr64, size64;
>       s16 id = -1;
> +     int ret;
>  
>       regaddr_p = of_get_address(op->dev.of_node, 0, &size64, NULL);
>       if (!regaddr_p) {
> @@ -533,8 +535,14 @@ static int __devinit mpc512x_psc_spi_of_probe(struct 
> of_device *op,
>               id = *psc_nump;
>       }
>  
> -     return mpc512x_psc_spi_do_probe(&op->dev, (u32) regaddr64, (u32) size64,
> +     ret = mpc512x_psc_spi_do_probe(&op->dev, (u32) regaddr64, (u32) size64,
>                               irq_of_parse_and_map(op->dev.of_node, 0), id);
> +
> +     if (!ret)
> +             of_register_spi_devices(dev_get_drvdata(&op->dev),
> +                                     op->dev.of_node);
> +
> +     return ret;
>  }
>  
>  static int __devexit mpc512x_psc_spi_of_remove(struct of_device *op)
> -- 
> 1.7.0.4
> 
> 
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> spi-devel-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spi-devel-general

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to