parisc/stifb: Fix fb_is_primary_device() only available with CONFIG_FB_STI
authorHelge Deller <deller@gmx.de>
Tue, 7 Jun 2022 10:57:58 +0000 (12:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 07:03:29 +0000 (09:03 +0200)
commitcb4d52085c8b682aa65eed79bf76b76190fa5d73
tree326fdb9f91144c26c67b0c5d573f1e7293820382
parent0dcc1dd8a5dd9240639f1051dfaa2dffc9fbbde5
parisc/stifb: Fix fb_is_primary_device() only available with CONFIG_FB_STI

commit 1d0811b03eb30b2f0793acaa96c6ce90b8b9c87a upstream.

Fix this build error noticed by the kernel test robot:

drivers/video/console/sticore.c:1132:5: error: redefinition of 'fb_is_primary_device'
 arch/parisc/include/asm/fb.h:18:19: note: previous definition of 'fb_is_primary_device'

Signed-off-by: Helge Deller <deller@gmx.de>
Reported-by: kernel test robot <lkp@intel.com>
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/fb.h
drivers/video/console/sticore.c