OSDN Git Service

s390/ap: use the common driver-data pointer
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 7 Jun 2021 09:18:44 +0000 (11:18 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 25 Aug 2021 09:03:32 +0000 (11:03 +0200)
commitb5adbbf896d8375a1054ac56ac23194ac483ae96
tree8b21199e4242180bda307bc75554f66b9c6e3b71
parentc8c68c5fca47add52f7830a4e791434e98ba69c7
s390/ap: use the common driver-data pointer

The device struct provides a pointer for driver-private data. Use this
in the zcrypt drivers (as vfio_ap already does), and then remove the
custom pointer from the AP device structs.

As really_probe() will always clear the drvdata pointer on error, we
no longer have to do so ourselves.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/ap_bus.h
drivers/s390/crypto/zcrypt_card.c
drivers/s390/crypto/zcrypt_cex2a.c
drivers/s390/crypto/zcrypt_cex2c.c
drivers/s390/crypto/zcrypt_cex4.c
drivers/s390/crypto/zcrypt_queue.c