fbdev/cyber2000fb: Unexport symbols
Fix the compile-time warning
drivers/video/fbdev/cyber2000fb.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
The affected symbols are not used anywhere, so remove the functions
entirely.
v2:
- remove unused functions (Helge)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Helge Deller <deller@gmx.de>
Fixes: a934a57a42 ("scripts/misc-check: check missing #include <linux/export.h> when W=1")
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20250612081738.197826-5-tzimmermann@suse.de
This commit is contained in:
parent
5f13d0ff49
commit
3bb0aeb60a
|
|
@ -1089,7 +1089,6 @@ void cyber2000fb_enable_extregs(struct cfb_info *cfb)
|
|||
cyber2000_grphw(EXT_FUNC_CTL, old, cfb);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(cyber2000fb_enable_extregs);
|
||||
|
||||
/*
|
||||
* Disable access to the extended registers
|
||||
|
|
@ -1109,41 +1108,6 @@ void cyber2000fb_disable_extregs(struct cfb_info *cfb)
|
|||
else
|
||||
cfb->func_use_count -= 1;
|
||||
}
|
||||
EXPORT_SYMBOL(cyber2000fb_disable_extregs);
|
||||
|
||||
/*
|
||||
* Attach a capture/tv driver to the core CyberX0X0 driver.
|
||||
*/
|
||||
int cyber2000fb_attach(struct cyberpro_info *info, int idx)
|
||||
{
|
||||
if (int_cfb_info != NULL) {
|
||||
info->dev = int_cfb_info->fb.device;
|
||||
#ifdef CONFIG_FB_CYBER2000_I2C
|
||||
info->i2c = &int_cfb_info->i2c_adapter;
|
||||
#else
|
||||
info->i2c = NULL;
|
||||
#endif
|
||||
info->regs = int_cfb_info->regs;
|
||||
info->irq = int_cfb_info->irq;
|
||||
info->fb = int_cfb_info->fb.screen_base;
|
||||
info->fb_size = int_cfb_info->fb.fix.smem_len;
|
||||
info->info = int_cfb_info;
|
||||
|
||||
strscpy(info->dev_name, int_cfb_info->fb.fix.id,
|
||||
sizeof(info->dev_name));
|
||||
}
|
||||
|
||||
return int_cfb_info != NULL;
|
||||
}
|
||||
EXPORT_SYMBOL(cyber2000fb_attach);
|
||||
|
||||
/*
|
||||
* Detach a capture/tv driver from the core CyberX0X0 driver.
|
||||
*/
|
||||
void cyber2000fb_detach(int idx)
|
||||
{
|
||||
}
|
||||
EXPORT_SYMBOL(cyber2000fb_detach);
|
||||
|
||||
#ifdef CONFIG_FB_CYBER2000_DDC
|
||||
|
||||
|
|
|
|||
|
|
@ -488,7 +488,5 @@ struct cyberpro_info {
|
|||
* Note! Writing to the Cyber20x0 registers from an interrupt
|
||||
* routine is definitely a bad idea atm.
|
||||
*/
|
||||
int cyber2000fb_attach(struct cyberpro_info *info, int idx);
|
||||
void cyber2000fb_detach(int idx);
|
||||
void cyber2000fb_enable_extregs(struct cfb_info *cfb);
|
||||
void cyber2000fb_disable_extregs(struct cfb_info *cfb);
|
||||
|
|
|
|||
Loading…
Reference in New Issue