media: atomisp: Don't use ifdef ISP2400
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>
This commit is contained in:
parent
01f4eab2d2
commit
3a46582317
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user