forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/s390/crypto/vfio_ap_drv.c
....@@ -82,8 +82,9 @@
8282
8383 static void vfio_ap_matrix_dev_release(struct device *dev)
8484 {
85
- struct ap_matrix_dev *matrix_dev = dev_get_drvdata(dev);
85
+ struct ap_matrix_dev *matrix_dev;
8686
87
+ matrix_dev = container_of(dev, struct ap_matrix_dev, device);
8788 kfree(matrix_dev);
8889 }
8990