Skip to content

Commit cd8d3fd

Browse files
committed
fixup! drm: apple: audio: Make the DP/HDMI audio driver a full driver
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent c890dc8 commit cd8d3fd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • drivers/gpu/drm/apple

drivers/gpu/drm/apple/av.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ int avep_init(struct apple_dcp *dcp)
319319
struct platform_device *audio_pdev;
320320
struct device *dev = dcp->dev;
321321
struct device_node *endpoint, *audio_node = NULL;
322-
struct device_link *dev_link;
323322

324323
audiosrv_data = devm_kzalloc(dcp->dev, sizeof(*audiosrv_data), GFP_KERNEL);
325324
if (!audiosrv_data)
@@ -361,8 +360,8 @@ int avep_init(struct apple_dcp *dcp)
361360
}
362361
dcp->audiosrv->audio_dev = audio_pdev;
363362

364-
dev_link = device_link_add(&audio_pdev->dev, dev,
365-
DL_FLAG_STATELESS | DL_FLAG_PM_RUNTIME);
363+
device_link_add(&audio_pdev->dev, dev,
364+
DL_FLAG_STATELESS | DL_FLAG_PM_RUNTIME);
366365

367366
dcp->avep = afk_init(dcp, AV_ENDPOINT, avep_ops);
368367
if (IS_ERR(dcp->avep))

0 commit comments

Comments
 (0)