Patch "media: atmel: atmel-sama7g5-isc: fix warning in configs without OF" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    media: atmel: atmel-sama7g5-isc: fix warning in configs without OF

to the 5.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     media-atmel-atmel-sama7g5-isc-fix-warning-in-configs.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 2a0719667308cff7eed41c6357bb28b67978870e
Author: Eugen Hristev <eugen.hristev@xxxxxxxxxxxxx>
Date:   Tue May 3 12:12:16 2022 +0100

    media: atmel: atmel-sama7g5-isc: fix warning in configs without OF
    
    [ Upstream commit b2bae4b8e637dd751d27918a6b27bd5abcd08859 ]
    
    All warnings (new ones prefixed by >>):
    
    >> drivers/media/platform/atmel/atmel-sama7g5-isc.c:610:34: warning: unused variable 'microchip_xisc_of_match' [-Wunused-const-variable]
       static const struct of_device_id microchip_xisc_of_match[] = {
                                        ^
       13 warnings generated.
    
    vim +/microchip_xisc_of_match +610 drivers/media/platform/atmel/atmel-sama7g5-isc.c
    
       609
     > 610  static const struct of_device_id microchip_xisc_of_match[] = {
       611          { .compatible = "microchip,sama7g5-isc" },
       612          { }
       613  };
       614  MODULE_DEVICE_TABLE(of, microchip_xisc_of_match);
       615
    
    Fixed warning by guarding the atmel_isc_of_match by CONFIG_OF.
    
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Fixes: c9aa973884a1 ("media: atmel: atmel-isc: add microchip-xisc driver")
    Signed-off-by: Eugen Hristev <eugen.hristev@xxxxxxxxxxxxx>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xxxxxxxxx>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/platform/atmel/atmel-sama7g5-isc.c b/drivers/media/platform/atmel/atmel-sama7g5-isc.c
index 83b175070c06..8b11aa8340d7 100644
--- a/drivers/media/platform/atmel/atmel-sama7g5-isc.c
+++ b/drivers/media/platform/atmel/atmel-sama7g5-isc.c
@@ -591,11 +591,13 @@ static const struct dev_pm_ops microchip_xisc_dev_pm_ops = {
 	SET_RUNTIME_PM_OPS(xisc_runtime_suspend, xisc_runtime_resume, NULL)
 };
 
+#if IS_ENABLED(CONFIG_OF)
 static const struct of_device_id microchip_xisc_of_match[] = {
 	{ .compatible = "microchip,sama7g5-isc" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, microchip_xisc_of_match);
+#endif
 
 static struct platform_driver microchip_xisc_driver = {
 	.probe	= microchip_xisc_probe,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux