From 02b6619d66a1838e122575a49aa821b5091048b8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 7 Apr 2003 11:53:08 -0400 Subject: [PATCH] Clear up GFP confusion in rcpci45.c [ Jeff, Pete: looks correct. Please check. --RR ] From: Matthew Wilcox - Move PCI ID definitions to pci_ids.h - The GFP_DMA in rcpci45_init_one should be GFP_KERNEL because it's a pci_driver ->probe method, so it can sleep. - The GFP_DMA in RC_allocate_and_post_buffers should be GFP_ATOMIC because it's called from a timer function, so it must not sleep. --- include/linux/pci_ids.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 7af1d1d055a6..6e590c21cba9 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1743,6 +1743,9 @@ #define PCI_DEVICE_ID_AKS_ALADDINCARD 0x0100 #define PCI_DEVICE_ID_AKS_CPC 0x0200 +#define PCI_VENDOR_ID_REDCREEK 0x4916 +#define PCI_DEVICE_ID_RC45 0x1960 + #define PCI_VENDOR_ID_NETVIN 0x4a14 #define PCI_DEVICE_ID_NETVIN_NV5000SC 0x5000 -- cgit v1.2.3