video: mbxfb: Include linux/io.h instead of asm/io.h
PATCH 1/1 video: mbxfb: Include linux/io.h instead of asm/io.h
This fixes below build error:
CC [M] drivers/video/mbx/mbxfb.odrivers/video/mbx/mbxfb.c: In function 'mbxfb_probe':drivers/video/mbx/mbxfb.c:942:2: error: implicit declaration of function 'devm_ioremap_nocache' [-Werror=implicit-function-declaration] drivers/video/mbx/mbxfb.c:942:22: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/video/mbx/mbxfb.c:952:21: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
--- drivers/video/mbx/mbxfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/video/mbx/mbxfb.c +1 -2
@@ -26,8 +26,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/uaccess.h> - -#include <asm/io.h> +#include <linux/io.h> #include <video/mbxfb.h>
Signature · 1 line
1.7.9.5
Florian Tobias Schandinat
AppliedQuoted 10 lines · Axel Lin
This fixes below build error:
CC [M]
drivers/video/mbx/mbxfb.odrivers/video/mbx/mbxfb.c: In function 'mbxfb_probe':drivers/video/mbx/mbxfb.c:942:2: error: implicit declaration of function 'devm_ioremap_nocache' [-Werror=implicit-function-declaration]drivers/video/mbx/mbxfb.c:942:22: warning: assignment makes pointer from integer without a cast [enabled by default]drivers/video/mbx/mbxfb.c:952:21: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errorsSigned-off-by Axel Lin <[email protected]>
Applied. Thanks for pointing this out and fixing it.
Best regards,
Florian Tobias Schandinat
Quoted 18 lines
--- drivers/video/mbx/mbxfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/video/mbx/mbxfb.c +1
-2@@ -26,8 +26,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/uaccess.h> - -#include <asm/io.h> +#include <linux/io.h> #include <video/mbxfb.h>