diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-10-12 18:49:20 +0200 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-11-12 04:43:20 +0100 |
commit | 58c12bdc5d924e4bca60c2660df2a71be4953ac9 (patch) | |
tree | dc8b05c49285a65352545856a97be8a5cdad27b5 /drivers/usb | |
parent | powerpc/cpm: Move CPMFCR_* defines into cpm.h (diff) | |
download | linux-58c12bdc5d924e4bca60c2660df2a71be4953ac9.tar.xz linux-58c12bdc5d924e4bca60c2660df2a71be4953ac9.zip |
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')
-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 */ |