From 032fbe832ce88ef19c4f872cc43f9d2aeac5343e Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Thu, 21 May 2015 15:52:04 +0300 Subject: [PATCH] compat-3.2.h: Avoid module_platform_driver redefinition Signed-off-by: Vladimir Sokolovsky --- include/linux/compat-3.2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat-3.2.h b/include/linux/compat-3.2.h index b915ffc..7f4338c 100644 --- a/include/linux/compat-3.2.h +++ b/include/linux/compat-3.2.h @@ -147,9 +147,11 @@ static inline char *hex_byte_pack(char *buf, u8 byte) * boilerplate. Each module may only use this macro once, and * calling it replaces module_init() and module_exit() */ +#ifndef module_platform_driver #define module_platform_driver(__platform_driver) \ module_driver(__platform_driver, platform_driver_register, \ platform_driver_unregister) +#endif #define dma_zalloc_coherent LINUX_BACKPORT(dma_zalloc_coherent) static inline void *dma_zalloc_coherent(struct device *dev, size_t size, -- 2.41.0