Superconductivity and lattice instability