From: "Usman S. Ansari" At present it calls bng_re_remove(), which adequately handles device teardown on shutdown. Appropriate shutdown-specific handling will be introduced in the future. Signed-off-by: Usman S. Ansari Reviewed-by: Siva Reddy Kallam Signed-off-by: Vikas Gupta --- drivers/infiniband/hw/bng_re/bng_dev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/infiniband/hw/bng_re/bng_dev.c b/drivers/infiniband/hw/bng_re/bng_dev.c index 311c8bc93160..42b473919d09 100644 --- a/drivers/infiniband/hw/bng_re/bng_dev.c +++ b/drivers/infiniband/hw/bng_re/bng_dev.c @@ -477,6 +477,11 @@ static void bng_re_remove(struct auxiliary_device *adev) kfree(dev_info); } +static void bng_re_shutdown(struct auxiliary_device *adev) +{ + bng_re_remove(adev); +} + static const struct auxiliary_device_id bng_re_id_table[] = { { .name = BNG_RE_ADEV_NAME ".rdma", }, {}, @@ -488,6 +493,7 @@ static struct auxiliary_driver bng_re_driver = { .name = "rdma", .probe = bng_re_probe, .remove = bng_re_remove, + .shutdown = bng_re_shutdown, .id_table = bng_re_id_table, }; -- 2.47.1