[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230418122406.1338-1-angus.chen@jaguarmicro.com>
Date: Tue, 18 Apr 2023 20:24:06 +0800
From: Angus Chen <angus.chen@...uarmicro.com>
To: gregkh@...uxfoundation.org, rafael@...nel.org
Cc: linux-kernel@...r.kernel.org,
Angus Chen <angus.chen@...uarmicro.com>
Subject: [PATCH] driver core: auxiliary bus: No need to get auxdev->dev again
Use dev variable directly.
No functional change intended.
Signed-off-by: Angus Chen <angus.chen@...uarmicro.com>
---
drivers/base/auxiliary.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/auxiliary.c b/drivers/base/auxiliary.c
index 4d4c2c8d26c4..ca1d044ff738 100644
--- a/drivers/base/auxiliary.c
+++ b/drivers/base/auxiliary.c
@@ -286,7 +286,7 @@ int auxiliary_device_init(struct auxiliary_device *auxdev)
}
dev->bus = &auxiliary_bus_type;
- device_initialize(&auxdev->dev);
+ device_initialize(dev);
return 0;
}
EXPORT_SYMBOL_GPL(auxiliary_device_init);
--
2.25.1
Powered by blists - more mailing lists