Commit 73720861 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[libata] pata_via: suspend/resume support fix

Make this array static so it doesn't have to be built at runtime.

Cc: Alan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 0153260a
...@@ -395,7 +395,7 @@ static void via_config_fifo(struct pci_dev *pdev, unsigned int flags) ...@@ -395,7 +395,7 @@ static void via_config_fifo(struct pci_dev *pdev, unsigned int flags)
enable &= 3; enable &= 3;
if (flags & VIA_SET_FIFO) { if (flags & VIA_SET_FIFO) {
u8 fifo_setting[4] = {0x00, 0x60, 0x00, 0x20}; static const u8 fifo_setting[4] = {0x00, 0x60, 0x00, 0x20};
u8 fifo; u8 fifo;
pci_read_config_byte(pdev, 0x43, &fifo); pci_read_config_byte(pdev, 0x43, &fifo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment