From: Ruiqiang Hao <[email protected]>

commit 51e67b2bec0a (driver: spi: cadence: Add ACPI support)
replaced node_child with fwnode_child, but the old variables
were not deleted, this will cause compiler warning below, so
remove these unused variables.

drivers/spi/spi-cadence-xspi.c: In function 'cdns_xspi_of_get_plat_data':
drivers/spi/spi-cadence-xspi.c:873:29: warning: unused variable 'node_child' 
[-Wunused-variable]
  873 |         struct device_node *node_child;
      |                             ^~~~~~~~~~
drivers/spi/spi-cadence-xspi.c:871:29: warning: unused variable 'node_prop' 
[-Wunused-variable]
  871 |         struct device_node *node_prop = pdev->dev.of_node;
      |                             ^~~~~~~~~

Signed-off-by: Ruiqiang Hao <[email protected]>
---
 drivers/spi/spi-cadence-xspi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c
index f9a60aa04d77..549a43cc491d 100644
--- a/drivers/spi/spi-cadence-xspi.c
+++ b/drivers/spi/spi-cadence-xspi.c
@@ -868,9 +868,7 @@ static irqreturn_t cdns_xspi_irq_handler(int this_irq, void 
*dev)
 
 static int cdns_xspi_of_get_plat_data(struct platform_device *pdev)
 {
-       struct device_node *node_prop = pdev->dev.of_node;
        struct fwnode_handle *fwnode_child;
-       struct device_node *node_child;
        struct spi_master *master = platform_get_drvdata(pdev);
        struct cdns_xspi_dev *cdns_xspi = spi_master_get_devdata(master);
        unsigned int cs;
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12463): 
https://lists.yoctoproject.org/g/linux-yocto/message/12463
Mute This Topic: https://lists.yoctoproject.org/mt/98753851/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to