X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fpcmcia%2Fo2micro.h;h=f4ccd8454bb0893f485dcb8cb53cb973de0af72a;hb=1be35e94e1da3669db492995cd2c8b1a37016b11;hp=adbe8a724e0a0d92a18ffe4c4e03707b7f1150a9;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/pcmcia/o2micro.h b/drivers/pcmcia/o2micro.h index adbe8a724..f4ccd8454 100644 --- a/drivers/pcmcia/o2micro.h +++ b/drivers/pcmcia/o2micro.h @@ -120,30 +120,4 @@ #define O2_MODE_E_LED_OUT 0x08 #define O2_MODE_E_SKTA_ACTV 0x10 -static int o2micro_override(struct yenta_socket *socket) -{ - /* - * 'reserved' register at 0x94/D4. chaning it to 0xCA (8 bit) enables - * read prefetching which for example makes the RME Hammerfall DSP - * working. for some bridges it is at 0x94, for others at 0xD4. it's - * ok to write to both registers on all O2 bridges. - * from Eric Still, 02Micro. - */ - if (PCI_FUNC(socket->dev->devfn) == 0) { - config_writeb(socket, 0x94, 0xCA); - config_writeb(socket, 0xD4, 0xCA); - } - - return 0; -} - -static void o2micro_restore_state(struct yenta_socket *socket) -{ - /* - * as long as read prefetch is the only thing in - * o2micro_override, it's safe to call it from here - */ - o2micro_override(socket); -} - #endif /* _LINUX_O2MICRO_H */