From: Andrew Morton Date: Wed, 20 Dec 2006 18:09:10 +0000 (-0500) Subject: [libata] pata_via: suspend/resume support fix X-Git-Tag: v2.6.20-rc2~80^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73720861d211e2b23c3026c6adea6f758676c46f;p=linux-2.6 [libata] pata_via: suspend/resume support fix Make this array static so it doesn't have to be built at runtime. Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c index ff93e8f71c..f0d4f7e9ed 100644 --- a/drivers/ata/pata_via.c +++ b/drivers/ata/pata_via.c @@ -395,7 +395,7 @@ static void via_config_fifo(struct pci_dev *pdev, unsigned int flags) enable &= 3; 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; pci_read_config_byte(pdev, 0x43, &fifo);