Skip to content

Commit c890dc8

Browse files
committed
fixup! gpu: drm: apple: Set up client of AV endpoint
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent cb617f4 commit c890dc8

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • drivers/gpu/drm/apple

drivers/gpu/drm/apple/av.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ int avep_init(struct apple_dcp *dcp)
320320
struct device *dev = dcp->dev;
321321
struct device_node *endpoint, *audio_node = NULL;
322322
struct device_link *dev_link;
323-
int ret;
324323

325324
audiosrv_data = devm_kzalloc(dcp->dev, sizeof(*audiosrv_data), GFP_KERNEL);
326325
if (!audiosrv_data)
@@ -369,9 +368,5 @@ int avep_init(struct apple_dcp *dcp)
369368
if (IS_ERR(dcp->avep))
370369
return PTR_ERR(dcp->avep);
371370
dcp->avep->debugfs_entry = dcp->ep_debugfs[AV_ENDPOINT - 0x20];
372-
ret = afk_start(dcp->avep);
373-
if (ret)
374-
return ret;
375-
376-
return 0;
371+
return afk_start(dcp->avep);
377372
}

0 commit comments

Comments
 (0)