diff mbox

[Resend,1/1] PCI: mvebu: Remove redundant of_match_ptr

Message ID 1387443899-7149-1-git-send-email-sachin.kamat@linaro.org (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Sachin Kamat Dec. 19, 2013, 9:04 a.m. UTC
mvebu_pcie_of_match_table is always compiled in. Hence of_match_ptr is
not required.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 drivers/pci/host/pci-mvebu.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Thomas Petazzoni Dec. 19, 2013, 9:13 a.m. UTC | #1
Dear Sachin Kamat,

On Thu, 19 Dec 2013 14:34:59 +0530, Sachin Kamat wrote:
> mvebu_pcie_of_match_table is always compiled in. Hence of_match_ptr is
> not required.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  drivers/pci/host/pci-mvebu.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Bjorn Helgaas Dec. 19, 2013, 6:19 p.m. UTC | #2
On Thu, Dec 19, 2013 at 02:34:59PM +0530, Sachin Kamat wrote:
> mvebu_pcie_of_match_table is always compiled in. Hence of_match_ptr is
> not required.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thanks, applied with Thomas's ack to pci/host-mvebu for v3.14.

Bjorn

> ---
>  drivers/pci/host/pci-mvebu.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
> index 533e0df02718..bedc0b1562b9 100644
> --- a/drivers/pci/host/pci-mvebu.c
> +++ b/drivers/pci/host/pci-mvebu.c
> @@ -1012,8 +1012,7 @@ static struct platform_driver mvebu_pcie_driver = {
>  	.driver = {
>  		.owner = THIS_MODULE,
>  		.name = "mvebu-pcie",
> -		.of_match_table =
> -		   of_match_ptr(mvebu_pcie_of_match_table),
> +		.of_match_table = mvebu_pcie_of_match_table,
>  		/* driver unloading/unbinding currently not supported */
>  		.suppress_bind_attrs = true,
>  	},
> -- 
> 1.7.9.5
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index 533e0df02718..bedc0b1562b9 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -1012,8 +1012,7 @@  static struct platform_driver mvebu_pcie_driver = {
 	.driver = {
 		.owner = THIS_MODULE,
 		.name = "mvebu-pcie",
-		.of_match_table =
-		   of_match_ptr(mvebu_pcie_of_match_table),
+		.of_match_table = mvebu_pcie_of_match_table,
 		/* driver unloading/unbinding currently not supported */
 		.suppress_bind_attrs = true,
 	},