mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
misc: mods: fix compilation with k5.4
Clean up configuration in mods_config.h and make mods_config.h identical to the official copy in Perforce. Bug 200587200 Change-Id: I035119eb44025f45d8272729ebc5a918dd8da6fe Signed-off-by: Chris Dragan <kdragan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2302436 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
b5b2def304
commit
a85680cbc5
@@ -409,7 +409,8 @@ int mods_find_pci_dev(struct mods_client *client,
|
||||
#endif
|
||||
|
||||
/* clock */
|
||||
#ifdef MODS_TEGRA
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_COMMON_CLK) && \
|
||||
defined(CONFIG_OF_RESOLVE) && defined(CONFIG_OF_DYNAMIC)
|
||||
void mods_init_clock_api(void);
|
||||
void mods_shutdown_clock_api(void);
|
||||
#endif
|
||||
@@ -525,7 +526,7 @@ int esc_mods_pci_set_dma_mask(struct mods_client *client,
|
||||
struct MODS_PCI_DMA_MASK *dma_mask);
|
||||
#endif
|
||||
/* irq */
|
||||
#if defined(MODS_TEGRA) && defined(CONFIG_OF) && defined(CONFIG_OF_IRQ)
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_OF) && defined(CONFIG_OF_IRQ)
|
||||
int esc_mods_map_irq(struct mods_client *client, struct MODS_DT_INFO *p);
|
||||
int esc_mods_map_irq_to_gpio(struct mods_client *client,
|
||||
struct MODS_GPIO_INFO *p);
|
||||
@@ -553,7 +554,7 @@ int esc_mods_register_irq_4(struct mods_client *client,
|
||||
int esc_mods_query_irq_3(struct mods_client *client,
|
||||
struct MODS_QUERY_IRQ_3 *p);
|
||||
|
||||
#ifdef MODS_TEGRA
|
||||
#ifdef CONFIG_ARCH_TEGRA
|
||||
|
||||
/* clock */
|
||||
int esc_mods_get_clock_handle(struct mods_client *client,
|
||||
@@ -608,12 +609,12 @@ int esc_mods_tegra_dc_config_possible(struct mods_client *client,
|
||||
struct MODS_TEGRA_DC_CONFIG_POSSIBLE *p);
|
||||
#endif
|
||||
|
||||
#ifdef MODS_HAS_NET
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_NET)
|
||||
int esc_mods_net_force_link(struct mods_client *client,
|
||||
struct MODS_NET_DEVICE_NAME *p);
|
||||
#endif
|
||||
|
||||
#ifdef MODS_HAS_DMABUF
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_DMA_SHARED_BUFFER)
|
||||
int esc_mods_dmabuf_get_phys_addr(struct mods_client *client,
|
||||
struct MODS_DMABUF_GET_PHYSICAL_ADDRESS *p);
|
||||
#else
|
||||
@@ -658,7 +659,7 @@ static inline int mods_create_debugfs(struct miscdevice *modsdev)
|
||||
static inline void mods_remove_debugfs(void) {}
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
|
||||
#if defined(MODS_TEGRA) && defined(MODS_HAS_DMABUF)
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_DMA_SHARED_BUFFER)
|
||||
int mods_init_dmabuf(void);
|
||||
void mods_exit_dmabuf(void);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user