The 40MHz one is the one you need to replace. I'd desolder it, and put a socket in its place, that way you can revert back easily if need be.
If just stepping the bus speed up to 25MHz, it's unlikely that you'll be running anything very far out of spec. 8MHz is usually what ISA runs at, but...