kernel/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk104.c
.. .. @@ -121,9 +121,5 @@ 121 121 gk104_ibus_new(struct nvkm_device *device, int index, 122 122 struct nvkm_subdev **pibus) 123 123 { 124 - struct nvkm_subdev *ibus;125 - if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))126 - return -ENOMEM;127 - nvkm_subdev_ctor(&gk104_ibus, device, index, ibus);128 - return 0;124 + return nvkm_subdev_new_(&gk104_ibus, device, index, pibus);129 125 }