media: atomisp: Don't use ifdef ISP2400
authorHans de Goede <hdegoede@redhat.com>
Sun, 16 Jan 2022 21:51:57 +0000 (22:51 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 8 Feb 2022 05:28:37 +0000 (06:28 +0100)
IPS2400 is never defined, for ISP2401 builds ISP2401 gets defined and
for ISP2400 nothing gets defined, so any #ifdef ISP2400 checks should
be #ifndef ISP2401 checks instead.

Link: https://lore.kernel.org/linux-media/20220116215204.307649-3-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c

index 1b24089..52a367f 100644 (file)
@@ -1467,7 +1467,7 @@ static bool is_valid_device(struct pci_dev *pdev, const struct pci_device_id *id
         * remove the if once the driver become generic
         */
 
-#if defined(ISP2400)
+#ifndef ISP2401
        if (IS_ISP2401) {
                dev_err(&pdev->dev, "Support for %s (ISP2401) was disabled at compile time\n",
                        name);