From: Randy Dunlap Date: Fri, 28 Jul 2023 01:11:20 +0000 (-0700) Subject: x86/APM: drop the duplicate APM_MINOR_DEV macro X-Git-Tag: v6.6.17~4035^2~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ba2909638a29630a346d6c4907a3105409bee7d;p=platform%2Fkernel%2Flinux-rpi.git x86/APM: drop the duplicate APM_MINOR_DEV macro This source file already includes , which contains the same macro. It doesn't need to be defined here again. Fixes: 874bcd00f520 ("apm-emulation: move APM_MINOR_DEV to include/linux/miscdevice.h") Signed-off-by: Randy Dunlap Cc: Jiri Kosina Cc: x86@kernel.org Cc: Sohil Mehta Cc: Corentin Labbe Reviewed-by: Sohil Mehta Link: https://lore.kernel.org/r/20230728011120.759-1-rdunlap@infradead.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c index c6c15ce..5934ee5 100644 --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c @@ -239,12 +239,6 @@ extern int (*console_blank_hook)(int); #endif /* - * The apm_bios device is one of the misc char devices. - * This is its minor number. - */ -#define APM_MINOR_DEV 134 - -/* * Various options can be changed at boot time as follows: * (We allow underscores for compatibility with the modules code) * apm=on/off enable/disable APM