diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-10-12 20:49:20 +0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-11-12 06:43:20 +0300 |
commit | 58c12bdc5d924e4bca60c2660df2a71be4953ac9 (patch) | |
tree | dc8b05c49285a65352545856a97be8a5cdad27b5 /drivers/usb/gadget/fsl_qe_udc.h | |
parent | 71d94fe842c34fb93eb32ae20207bea757292b79 (diff) | |
download | linux-58c12bdc5d924e4bca60c2660df2a71be4953ac9.tar.xz |
powerpc/qe&cpm: Implement static inline stubs for non-QE/CPM builds
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 <avorontsov@ru.mvista.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/usb/gadget/fsl_qe_udc.h')
-rw-r--r-- | drivers/usb/gadget/fsl_qe_udc.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/usb/gadget/fsl_qe_udc.h b/drivers/usb/gadget/fsl_qe_udc.h index 31b2710882e4..bea5b827bebe 100644 --- a/drivers/usb/gadget/fsl_qe_udc.h +++ b/drivers/usb/gadget/fsl_qe_udc.h @@ -419,19 +419,4 @@ struct qe_udc { #define CPM_USB_RESTART_TX_OPCODE 0x0b #define CPM_USB_EP_SHIFT 5 -#ifndef CONFIG_CPM -inline int cpm_command(u32 command, u8 opcode) -{ - return -EOPNOTSUPP; -} -#endif - -#ifndef CONFIG_QUICC_ENGINE -inline int qe_issue_cmd(u32 cmd, u32 device, u8 mcn_protocol, - u32 cmd_input) -{ - return -EOPNOTSUPP; -} -#endif - #endif /* __FSL_QE_UDC_H */ |