Re: [PATCH 03/11] platform: make support for early platform devices conditional

From: Randy Dunlap
Date: Tue Apr 24 2018 - 15:32:02 EST


On 04/24/2018 10:30 AM, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
> ---
> arch/sh/Kconfig | 1 +
> drivers/base/Kconfig | 4 ++++
> drivers/base/platform.c | 3 +++
> include/linux/platform_device.h | 32 ++++++++++++++++++++++++++++++++
> 4 files changed, 40 insertions(+)

> index 29b0eb452b3a..37de5e1d6217 100644
> --- a/drivers/base/Kconfig
> +++ b/drivers/base/Kconfig
> @@ -205,6 +205,10 @@ config DEBUG_TEST_DRIVER_REMOVE
> unusable. You should say N here unless you are explicitly looking to
> test this functionality.
>
> +config EARLY_PLATFORM_DEVICES
> + bool
> + default n

The default value is already 'n', so we usually ask people to omit that
value. OTOH, you could combine those 2 lines into:

def_bool n


> +
> source "drivers/base/test/Kconfig"
>
> config SYS_HYPERVISOR


--
~Randy