The pci_quirks function was being called too early during initialisation,
it needs to be called after the board has been identified.
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
dev->bmmio = (u8 __iomem *)dev->lmmio;
- cx23885_pci_quirks(dev);
-
/* board config */
dev->board = UNSET;
if (card[dev->nr] < cx23885_bcount)
dev->board, card[dev->nr] == dev->board ?
"insmod option" : "autodetected");
+ cx23885_pci_quirks(dev);
+
/* Configure the internal memory */
if(dev->pci->device == 0x8880) {
dev->bridge = CX23885_BRIDGE_887;