mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 18:42:25 -04:00
drm/nouveau/secboot: rename init() hook to oneinit()
The init() hook is called by the subdev's oneinit(). Rename it accordingly to avoid confusion about the lifetime of objects allocated in it. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
committed by
Ben Skeggs
parent
c8225b54fe
commit
808d6efdeb
@@ -78,8 +78,8 @@ nvkm_secboot_oneinit(struct nvkm_subdev *subdev)
|
||||
}
|
||||
|
||||
/* Call chip-specific init function */
|
||||
if (sb->func->init)
|
||||
ret = sb->func->init(sb);
|
||||
if (sb->func->oneinit)
|
||||
ret = sb->func->oneinit(sb);
|
||||
if (ret) {
|
||||
nvkm_error(subdev, "Secure Boot initialization failed: %d\n",
|
||||
ret);
|
||||
|
||||
Reference in New Issue
Block a user