]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ap: wire up bus->probe and bus->remove
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 16 Apr 2021 10:46:27 +0000 (12:46 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 15:06:59 +0000 (17:06 +0200)
commit8b6122a4388ebe83d7bf57f2057dc380c7802e35
treeb774523620098353da5ad24b5da877939d0b4146
parent336b058fc769f86f54ec643910b1ebda55a75d4c
s390/ap: wire up bus->probe and bus->remove

Hijacking the device_driver's probe/remove callbacks for purely
bus-internal logic is a very unconvential construct. Instead just set
up our callbacks in the AP bus struct, and really_probe() will call them
in the same way as before.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/ap_bus.c