x86/APM: drop the duplicate APM_MINOR_DEV macro
Subsystems (2)
PATCH v2 1/1 x86/APM: drop the duplicate APM_MINOR_DEV macro
This source file already includes <linux/miscdevice.h>, 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 <[email protected]>
Cc Jiri Kosina <[email protected]>
Cc Sohil Mehta <[email protected]>
Cc Corentin Labbe <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
v2: change the Fixes: tag (Sohil)
arch/x86/kernel/apm_32.c | 6 ------ 1 file changed, 6 deletions(-)
arch/x86/kernel/apm_32.c +0 -6
@@ -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
Just a nit, the tip tree handbook says:
Quoted 2 lines
"The condensed patch description in the subject line should start with a uppercase letter and ..."
https://docs.kernel.org/process/maintainer-tip.html?highlight=tip+maintainer#patch-subject
Quoted 5 lines · Randy Dunlap
This source file already includes <
linux/miscdevice.h>, 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 <[email protected]>
Reviewed-by Sohil Mehta <[email protected]>