diff options
author | Thierry Reding <treding@nvidia.com> | 2017-03-22 19:15:18 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-04-05 18:11:50 +0200 |
commit | b0d36daa0ab54714e05164f6e21d22f974a5eec1 (patch) | |
tree | 9afb540bbe407ca6e5b1e74dab1db3a9418644bf /block/blk-mq-pci.c | |
parent | b386c6b73ac6c2a9a2f1201d055ab65cc19890a2 (diff) |
gpu: host1x: Fix host1x driver shutdown
Shutting down a host1x device currently crashes if the device has failed
to probe. The root cause is that the host1x shutdown is implemented as a
struct bus_type callback, but in turn relies on the driver bound to the
device. On failure to probe, no driver will be bound and cause the code
to crash.
Fix this by moving the ->probe(), ->remove() and ->shutdown() callbacks
to the driver rather than the bus.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'block/blk-mq-pci.c')
0 files changed, 0 insertions, 0 deletions