Reduce the card specific code to what's needed. Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>