mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 07:55:03 +07:00
0a4587a034
Commit a30933c27602 ("drm/pl111: Support the Versatile Express") Added a second module using the builtin_platform_driver() call, which works fine as long as you do not try to build the PL111 driver as a module, because a module can only have one initcall and cause the following build bug: (...) multiple definition of `init_module' (...) Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Liviu Dudau <liviu.dudau@arm.com> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Eric Anholt <eric@anholt.net> Cc: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Fixes: a30933c27602 ("drm/pl111: Support the Versatile Express") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20180503140431.5798-1-linus.walleij@linaro.org
30 lines
517 B
C
30 lines
517 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
struct device;
|
|
struct pl111_drm_dev_private;
|
|
struct regmap;
|
|
|
|
#ifdef CONFIG_ARCH_VEXPRESS
|
|
|
|
int pl111_vexpress_clcd_init(struct device *dev,
|
|
struct pl111_drm_dev_private *priv,
|
|
struct regmap *map);
|
|
|
|
int vexpress_muxfpga_init(void);
|
|
|
|
#else
|
|
|
|
static inline int pl111_vexpress_clcd_init(struct device *dev,
|
|
struct pl111_drm_dev_private *priv,
|
|
struct regmap *map)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int vexpress_muxfpga_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif
|