From: Angus Chen <angus.chen@jaguarmicro.com>
To: gregkh@linuxfoundation.org, rafael@kernel.org
Cc: linux-kernel@vger.kernel.org, Angus Chen <angus.chen@jaguarmicro.com>
Subject: [PATCH] driver core: auxiliary bus: No need to get auxdev->dev again
Date: Tue, 18 Apr 2023 20:24:06 +0800 [thread overview]
Message-ID: <20230418122406.1338-1-angus.chen@jaguarmicro.com> (raw)
Use dev variable directly.
No functional change intended.
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.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
next reply other threads:[~2023-04-18 12:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 12:24 Angus Chen [this message]
2023-04-18 12:32 ` Greg KH
2023-04-19 1:02 ` Angus Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230418122406.1338-1-angus.chen@jaguarmicro.com \
--to=angus.chen@jaguarmicro.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®