From: Ruan Jinjie <ruanjinjie@huawei.com>
To: <mdf@kernel.org>, <hao.wu@intel.com>, <yilun.xu@intel.com>,
<trix@redhat.com>, <linux-fpga@vger.kernel.org>
Cc: <ruanjinjie@huawei.com>
Subject: [PATCH -next 2/2] fpga: fpga-region: Remove redundant of_match_ptr()
Date: Tue, 8 Aug 2023 21:14:59 +0800 [thread overview]
Message-ID: <20230808131459.4081739-3-ruanjinjie@huawei.com> (raw)
In-Reply-To: <20230808131459.4081739-1-ruanjinjie@huawei.com>
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
drivers/fpga/of-fpga-region.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fpga/of-fpga-region.c b/drivers/fpga/of-fpga-region.c
index a6affd83f275..70fe0008ad4c 100644
--- a/drivers/fpga/of-fpga-region.c
+++ b/drivers/fpga/of-fpga-region.c
@@ -441,7 +441,7 @@ static struct platform_driver of_fpga_region_driver = {
.remove = of_fpga_region_remove,
.driver = {
.name = "of-fpga-region",
- .of_match_table = of_match_ptr(fpga_region_of_match),
+ .of_match_table = fpga_region_of_match,
},
};
--
2.34.1
prev parent reply other threads:[~2023-08-08 19:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 13:14 [PATCH -next 0/2] Remove redundant of_match_ptr() Ruan Jinjie
2023-08-08 13:14 ` [PATCH -next 1/2] fpga: ice40-spi: " Ruan Jinjie
2023-08-08 13:14 ` Ruan Jinjie [this message]
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=20230808131459.4081739-3-ruanjinjie@huawei.com \
--to=ruanjinjie@huawei.com \
--cc=hao.wu@intel.com \
--cc=linux-fpga@vger.kernel.org \
--cc=mdf@kernel.org \
--cc=trix@redhat.com \
--cc=yilun.xu@intel.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).