2021-06-03 02:39:05

by Yongqiang Liu

[permalink] [raw]
Subject: [PATCH -next] soc: bcm: brcmstb: Remove unused variable brcmstb_machine_match.

Since commit 8b8f095b9076 ("soc: bcm: brcmstb: Remove soc_is_brcmstb()")
remove the function soc_is_brcmstb(), the global variable
brcmstb_machine_match is no longer useful. So remove it.

Signed-off-by: Yongqiang Liu <[email protected]>
---
drivers/soc/bcm/brcmstb/common.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/drivers/soc/bcm/brcmstb/common.c b/drivers/soc/bcm/brcmstb/common.c
index e87dfc6660f3..2a010881f4b6 100644
--- a/drivers/soc/bcm/brcmstb/common.c
+++ b/drivers/soc/bcm/brcmstb/common.c
@@ -14,11 +14,6 @@
static u32 family_id;
static u32 product_id;

-static const struct of_device_id brcmstb_machine_match[] = {
- { .compatible = "brcm,brcmstb", },
- { }
-};
-
u32 brcmstb_get_family_id(void)
{
return family_id;
--
2.19.1


2021-06-04 17:55:40

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH -next] soc: bcm: brcmstb: Remove unused variable brcmstb_machine_match.

On Thu, 3 Jun 2021 02:44:26 +0000, Yongqiang Liu <[email protected]> wrote:
> Since commit 8b8f095b9076 ("soc: bcm: brcmstb: Remove soc_is_brcmstb()")
> remove the function soc_is_brcmstb(), the global variable
> brcmstb_machine_match is no longer useful. So remove it.
>
> Signed-off-by: Yongqiang Liu <[email protected]>
> ---

Applied to soc/next, thanks!
--
Florian