blob: 1ecf956cd6dc472d2650bc6cc9a8b0b7c0f86071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff --git a/libdde-linux26/lib/src/arch/l4/pci.c b/libdde-linux26/lib/src/arch/l4/pci.c
index b50a735..b6bf50a 100644
--- a/libdde-linux26/lib/src/arch/l4/pci.c
+++ b/libdde-linux26/lib/src/arch/l4/pci.c
@@ -162,16 +162,17 @@ pcibios_align_resource(void *data, struct resource *res,
int pcibios_enable_device(struct pci_dev *dev, int mask)
{
-#if 0
+#if 1
int err;
- if ((err = pcibios_enable_resources(dev, mask)) < 0)
+ if ((err = pci_enable_resources(dev, mask)) < 0)
return err;
-
- return pcibios_enable_irq(dev);
-#endif
+ enable_irq(dev->irq);
+ return 0;
+#else
WARN_UNIMPL;
return -1;
+#endif
}
/*******************************************************************************************
|