drivers/dma/pch_dma: declare pch_dma_id_table as static
PATCH 1/1 drivers/dma/pch_dma: declare pch_dma_id_table as static
pch_dma_id_table is used in pch_dma.c only, so declare it as static
Signed-off-by Michele Curti <[email protected]>
--- drivers/dma/pch_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/pch_dma.c +1 -1
@@ -997,7 +997,7 @@ static void pch_dma_remove(struct pci_dev *pdev)#define PCI_DEVICE_ID_ML7831_DMA1_8CH 0x8810#define PCI_DEVICE_ID_ML7831_DMA2_4CH 0x8815 -const struct pci_device_id pch_dma_id_table[] = { +static const struct pci_device_id pch_dma_id_table[] = { {PCI_VDEVICE (INTEL ,PCI_DEVICE_ID_EG20T_PCH_DMA_8CH ),8 }, {PCI_VDEVICE (INTEL ,PCI_DEVICE_ID_EG20T_PCH_DMA_4CH ),4 }, {PCI_VDEVICE (ROHM ,PCI_DEVICE_ID_ML7213_DMA1_8CH ),8 },/* UART Video */
Signature · 1 line
2.1.3
Vinod Koul
AppliedQuoted 2 lines · Michele Curti
pch_dma_id_tableis used inpch_dma.conly, so declare it as static
Applied, thanks
Signature · 1 line
~Vinod
Quoted 22 lines
Signed-off-by Michele Curti <[email protected]>--- drivers/dma/pch_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dma/pch_dma.c +1
-1@@ -997,7 +997,7 @@ static void pch_dma_remove(struct pci_dev *pdev)#define PCI_DEVICE_ID_ML7831_DMA1_8CH 0x8810#define PCI_DEVICE_ID_ML7831_DMA2_4CH 0x8815 -const struct pci_device_id pch_dma_id_table[] = { +static const struct pci_device_id pch_dma_id_table[] = { {PCI_VDEVICE (INTEL ,PCI_DEVICE_ID_EG20T_PCH_DMA_8CH ),8 }, {PCI_VDEVICE (INTEL ,PCI_DEVICE_ID_EG20T_PCH_DMA_4CH ),4 }, {PCI_VDEVICE (ROHM ,PCI_DEVICE_ID_ML7213_DMA1_8CH ),8 },/* UART Video */ Signature · 1 line
2.1.3