mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
s390/ap: use the common device_driver pointer
The device struct itself already contains a pointer to its driver. Use this consistently, instead of duplicating it. 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>
This commit is contained in:
committed by
Heiko Carstens
parent
81a076171e
commit
c8c68c5fca
@@ -572,14 +572,14 @@ static inline struct zcrypt_queue *zcrypt_pick_queue(struct zcrypt_card *zc,
|
||||
struct module **pmod,
|
||||
unsigned int weight)
|
||||
{
|
||||
if (!zq || !try_module_get(zq->queue->ap_dev.drv->driver.owner))
|
||||
if (!zq || !try_module_get(zq->queue->ap_dev.device.driver->owner))
|
||||
return NULL;
|
||||
zcrypt_queue_get(zq);
|
||||
get_device(&zq->queue->ap_dev.device);
|
||||
atomic_add(weight, &zc->load);
|
||||
atomic_add(weight, &zq->load);
|
||||
zq->request_count++;
|
||||
*pmod = zq->queue->ap_dev.drv->driver.owner;
|
||||
*pmod = zq->queue->ap_dev.device.driver->owner;
|
||||
return zq;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user