[PATCH 4/8] powerpc/qe&cpm: Implement static inline stubs for non-QE/CPM builds

2009-10-12 Thread Anton Vorontsov
This is needed to avoid ugly #ifdefs in drivers. Also update fsl_qe_udc driver so that now it doesn't define its own versions that cause build breakage when the generic stubs are used. Signed-off-by: Anton Vorontsov Acked-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/cpm.h | 44 +++

Re: [PATCH 4/8] powerpc/qe&cpm: Implement static inline stubs for non-QE/CPM builds

2009-08-27 Thread Kumar Gala
On Aug 18, 2009, at 5:04 PM, Anton Vorontsov wrote: This is needed to avoid ugly #ifdefs in drivers. Also update fsl_qe_udc driver so that now it doesn't define its own versions that cause build breakage when the generic stubs are used. Signed-off-by: Anton Vorontsov --- arch/powerpc/includ

Re: [PATCH 4/8] powerpc/qe&cpm: Implement static inline stubs for non-QE/CPM builds

2009-08-18 Thread Anton Vorontsov
On Tue, Aug 18, 2009 at 03:27:47PM -0700, Greg KH wrote: > On Wed, Aug 19, 2009 at 02:04:18AM +0400, Anton Vorontsov wrote: > > This is needed to avoid ugly #ifdefs in drivers. Also update fsl_qe_udc > > driver so that now it doesn't define its own versions that cause build > > breakage when the ge

Re: [PATCH 4/8] powerpc/qe&cpm: Implement static inline stubs for non-QE/CPM builds

2009-08-18 Thread Greg KH
On Wed, Aug 19, 2009 at 02:04:18AM +0400, Anton Vorontsov wrote: > This is needed to avoid ugly #ifdefs in drivers. Also update fsl_qe_udc > driver so that now it doesn't define its own versions that cause build > breakage when the generic stubs are used. > > Signed-off-by: Anton Vorontsov As yo

[PATCH 4/8] powerpc/qe&cpm: Implement static inline stubs for non-QE/CPM builds

2009-08-18 Thread Anton Vorontsov
This is needed to avoid ugly #ifdefs in drivers. Also update fsl_qe_udc driver so that now it doesn't define its own versions that cause build breakage when the generic stubs are used. Signed-off-by: Anton Vorontsov --- arch/powerpc/include/asm/cpm.h | 44 +

Re: [PATCH 4/8] powerpc/qe&cpm: Implement static inline stubs for non-QE/CPM builds

2009-08-17 Thread Anton Vorontsov
On Sat, Aug 15, 2009 at 02:25:49AM +0400, Anton Vorontsov wrote: [] > +#ifdef CONFIG_CPM > int cpm_command(u32 command, u8 opcode); > +#else > +static inline int cpm_command(u32 command, u8 opcode) > +{ > + return -ENOSYS; > +} > +#endif /* CONFIG_CPM */ It appers that fsl_qe_udc.h define

[PATCH 4/8] powerpc/qe&cpm: Implement static inline stubs for non-QE/CPM builds

2009-08-14 Thread Anton Vorontsov
This is needed to avoid ugly #ifdefs in drivers. QE/CPM UDC and MPC8xxx SPI drivers will benefit from this change. Signed-off-by: Anton Vorontsov --- arch/powerpc/include/asm/cpm.h | 44 arch/powerpc/include/asm/qe.h | 11 +- 2 files changed