forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gm200.c
....@@ -32,9 +32,5 @@
3232 gm200_ibus_new(struct nvkm_device *device, int index,
3333 struct nvkm_subdev **pibus)
3434 {
35
- struct nvkm_subdev *ibus;
36
- if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
37
- return -ENOMEM;
38
- nvkm_subdev_ctor(&gm200_ibus, device, index, ibus);
39
- return 0;
35
+ return nvkm_subdev_new_(&gm200_ibus, device, index, pibus);
4036 }