From a42a23f3de8898d630c1b287136a9ae34324d88b Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Fri, 31 Dec 2021 13:14:36 +0100 Subject: [PATCH] Add parent PCI device links to i2c device --- aura-gpu-hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/aura-gpu-hw.c b/aura-gpu-hw.c index f064b79..b443fb1 100644 --- a/aura-gpu-hw.c +++ b/aura-gpu-hw.c @@ -411,6 +411,7 @@ static struct hw_i2c_context *aura_gpu_i2c_create ( context->atom_context->scratch_size_bytes = sizeof(context->scratch); context->adapter.owner = THIS_MODULE; context->adapter.class = I2C_CLASS_DDC; + context->adapter.dev.parent = &pci_dev->dev; i2c_set_adapdata(&context->adapter, context);