Former South Australian opposition leader David Speirs has quit as an MP after he admitted that police had raided his home.