x86/platform: Switch back to struct platform_driver::remove()After 0edb555a65d1 ("platform: Make platform_driver::remove() return void").remove() is (again) the right callback to implement for
x86/platform: Switch back to struct platform_driver::remove()After 0edb555a65d1 ("platform: Make platform_driver::remove() return void").remove() is (again) the right callback to implement for platform drivers.Convert all platform drivers below arch/x86 to use .remove(), with theeventual goal to drop struct platform_driver::remove_new(). As .remove() and.remove_new() have the same prototypes, conversion is done by just changingthe structure member name in the driver initializer.Signed-off-by: Uwe Kleine-König <[email protected]>Signed-off-by: Borislav Petkov (AMD) <[email protected]>Link: https://lore.kernel.org/r/[email protected]
show more ...
x86/platform/iris: Convert to platform remove callback returning voidThe .remove() callback for a platform driver returns an int which makesmany driver authors wrongly assume it's possible to do e
x86/platform/iris: Convert to platform remove callback returning voidThe .remove() callback for a platform driver returns an int which makesmany driver authors wrongly assume it's possible to do error handling byreturning an error code. However the value returned is ignored (apartfrom emitting a warning) and this typically results in resource leaks.To improve here there is a quest to make the remove callback returnvoid. In the first step of this quest all drivers are converted to.remove_new(), which already returns void. Eventually after all driversare converted, .remove_new() will be renamed to .remove().Trivially convert this driver from always returning zero in the removecallback to the void returning variant.Signed-off-by: Uwe Kleine-König <[email protected]>Signed-off-by: Ingo Molnar <[email protected]>Link: https://lore.kernel.org/r/adb9b0aca77d7aa8e54d0a664a4ee290834a60a1.1712732665.git.u.kleine-koenig@pengutronix.de
module: remove never implemented MODULE_SUPPORTED_DEVICEMODULE_SUPPORTED_DEVICE was added in pre-git era and never wasimplemented. We can safely remove it, because the kernel has grownto have man
module: remove never implemented MODULE_SUPPORTED_DEVICEMODULE_SUPPORTED_DEVICE was added in pre-git era and never wasimplemented. We can safely remove it, because the kernel has grownto have many more reliable mechanisms to determine if device issupported or not.Signed-off-by: Leon Romanovsky <[email protected]>Signed-off-by: Linus Torvalds <[email protected]>
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 70Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 70Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with the program if not write to the free software foundation inc 675 mass ave cambridge ma 02139 usaextracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-laterhas been chosen to replace the boilerplate/reference in 2 file(s).Signed-off-by: Thomas Gleixner <[email protected]>Reviewed-by: Kate Stewart <[email protected]>Reviewed-by: Allison Randal <[email protected]>Reviewed-by: Richard Fontana <[email protected]>Cc: [email protected]Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Greg Kroah-Hartman <[email protected]>
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
x86: platform: iris: drop owner assignment from platform_driversA platform_driver does not need to set an owner, it will be populated by thedriver core.Signed-off-by: Wolfram Sang <wsa@the-dream
x86: platform: iris: drop owner assignment from platform_driversA platform_driver does not need to set an owner, it will be populated by thedriver core.Signed-off-by: Wolfram Sang <[email protected]>
x86: Delete non-required instances of include <linux/init.h>None of these files are actually using any __init type directivesand hence don't need to include <linux/init.h>. Most are just aleft o
x86: Delete non-required instances of include <linux/init.h>None of these files are actually using any __init type directivesand hence don't need to include <linux/init.h>. Most are just aleft over from __devinit and __cpuinit removal, or simply due tocode getting copied from one driver to the next.[ hpa: undid incorrect removal from arch/x86/kernel/head_32.S ]Signed-off-by: Paul Gortmaker <[email protected]>Link: http://lkml.kernel.org/r/[email protected]Signed-off-by: H. Peter Anvin <[email protected]>
arch/x86/platform/iris/iris.c: register a platform device and a platform driverThis makes the iris driver use the platform API, so it is properly exposedin /sys.[[email protected]: remov
arch/x86/platform/iris/iris.c: register a platform device and a platform driverThis makes the iris driver use the platform API, so it is properly exposedin /sys.[[email protected]: remove commented-out code, add missing space to printk, clean up code layout]Signed-off-by: Shérab <[email protected]>Cc: Len Brown <[email protected]>Cc: Matthew Garrett <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Signed-off-by: Linus Torvalds <[email protected]>
module_param: make bool parameters really bool (arch)module_param(bool) used to counter-intuitively take an int. Infddd5201 (mid-2009) we allowed bool or int/unsigned int using a messytrick.It
module_param: make bool parameters really bool (arch)module_param(bool) used to counter-intuitively take an int. Infddd5201 (mid-2009) we allowed bool or int/unsigned int using a messytrick.It's time to remove the int/unsigned int option. For this versionit'll simply give a warning, but it'll break next kernel version.Signed-off-by: Rusty Russell <[email protected]>
x86: platform: Move iris to x86/platform where it belongsSigned-off-by: Thomas Gleixner <[email protected]>