Skip to content

Commit

Permalink
[libata] pata_via: suspend/resume support fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Dec 20, 2006
1 parent 0153260 commit 7372086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7372086

Please sign in to comment.