forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf100.c
....@@ -118,9 +118,5 @@
118118 gf100_ibus_new(struct nvkm_device *device, int index,
119119 struct nvkm_subdev **pibus)
120120 {
121
- struct nvkm_subdev *ibus;
122
- if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
123
- return -ENOMEM;
124
- nvkm_subdev_ctor(&gf100_ibus, device, index, ibus);
125
- return 0;
121
+ return nvkm_subdev_new_(&gf100_ibus, device, index, pibus);
126122 }