On Tue, Apr 26, 2011 at 01:42, Shaohui Xie wrote: > +struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, > + unsigned int max_hz, unsigned int mode) > +{ > + fsl = malloc(sizeof(struct fsl_spi_slave));
personally, i like to use sizeof(*fsl). up to you. > + int numBlks i believe camel case is banned in u-boot, so use "num_blks" > + default: > + printf("Unsupported flags: %ld\n", flags); > + return 1; no one else bothers checking flags, so you dont really need to either. but if you keep this, the printf should have a prefix (such as __func__), and the flags should be shown with %#lx. otherwise, the actual arch-specific pieces dont jump out at me ... not that i know anything about programming ppc ... -mike _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot