]> err.no Git - linux-2.6/blobdiff - arch/powerpc/sysdev/fsl_soc.c
Merge git://git.infradead.org/mtd-2.6
[linux-2.6] / arch / powerpc / sysdev / fsl_soc.c
index e48b20e934ca233e744be83b36744a15cbd7d6ad..2c5388ce902abfaa3fd9f400c231a3dd64735cc5 100644 (file)
@@ -1342,7 +1342,7 @@ static int __init of_fsl_spi_probe(char *type, char *compatible, u32 sysclk,
                if (ret)
                        goto unreg;
 
-               ret = platform_device_register(pdev);
+               ret = platform_device_add(pdev);
                if (ret)
                        goto unreg;