]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[libata] pata_via: suspend/resume support fix
authorAndrew Morton <akpm@osdl.org>
Wed, 20 Dec 2006 18:09:10 +0000 (13:09 -0500)
committerJeff Garzik <jeff@garzik.org>
Wed, 20 Dec 2006 18:09:10 +0000 (13:09 -0500)
Make this array static so it doesn't have to be built at runtime.

Cc: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_via.c

index ff93e8f71cf8e8900d1cb070c5aa0f1d6a5e3477..f0d4f7e9ed314a857f3d70baf77068fe911207b6 100644 (file)
@@ -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);