soc/tegra: fuse: move APB DMA into Tegra20 fuse driver
The Tegra20 fuse driver is the only user of tegra_apb_readl_using_dma(). Therefore we can simply the code by incorporating the APB DMA handling into the driver directly. tegra_apb_writel_using_dma() is dropped because there are no users. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:

committed by
Thierry Reding

parent
155dfc7b54
commit
0d827a4343
@@ -61,20 +61,6 @@ int tegra_fuse_readl(unsigned long offset, u32 *value);
|
||||
|
||||
extern struct tegra_sku_info tegra_sku_info;
|
||||
|
||||
#if defined(CONFIG_TEGRA20_APB_DMA)
|
||||
int tegra_apb_readl_using_dma(unsigned long offset, u32 *value);
|
||||
int tegra_apb_writel_using_dma(u32 value, unsigned long offset);
|
||||
#else
|
||||
static inline int tegra_apb_readl_using_dma(unsigned long offset, u32 *value)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
static inline int tegra_apb_writel_using_dma(u32 value, unsigned long offset)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif /* CONFIG_TEGRA20_APB_DMA */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __SOC_TEGRA_FUSE_H__ */
|
||||
|
Reference in New Issue
Block a user