1
0
Fork 0

MLK-14885 dma: pxp: fix potential multi-definition issue

When 'CONFIG_MXC_PXP_CLIENT_DEVICE' disabled, the
'register_pxp_device' and 'unregister_pxp_device'
may cause multiple definitions compiling error.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
pull/10/head
Fancy Fang 2017-05-11 16:23:56 +08:00 committed by Jason Liu
parent 4705151d33
commit ed1e9196f8
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ void pxp_txd_ack(struct dma_async_tx_descriptor *txd,
int register_pxp_device(void);
void unregister_pxp_device(void);
#else
int register_pxp_device(void) { return 0; }
void unregister_pxp_device(void) {}
static int register_pxp_device(void) { return 0; }
static void unregister_pxp_device(void) {}
#endif
void pxp_fill(
u32 bpp,