diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-04-09 19:39:21 +0200 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-04-11 12:34:29 +0200 |
commit | 93ee235f55d3e1c881e766a320cedcad0b9aca42 (patch) | |
tree | 51d14be5ca73f66178ba5610251e2de850ec9d72 /drivers/auxdisplay | |
parent | auxdisplay: charlcd: Add missing MODULE_DESCRIPTION() (diff) | |
download | linux-93ee235f55d3e1c881e766a320cedcad0b9aca42.tar.xz linux-93ee235f55d3e1c881e766a320cedcad0b9aca42.zip |
auxdisplay: charlcd: Don't rebuild when CONFIG_PANEL_BOOT_MESSAGE=y
When CONFIG_PANEL_BOOT_MESSAGE=y the module still includes
the generated header and gets rebuilt even if it doesn't use
anything from that header. Include generated header conditionally
to avoid unnecessary rebuilds.
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r-- | drivers/auxdisplay/charlcd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c index 5df019720c56..bb9463814454 100644 --- a/drivers/auxdisplay/charlcd.c +++ b/drivers/auxdisplay/charlcd.c @@ -17,7 +17,9 @@ #include <linux/uaccess.h> #include <linux/workqueue.h> +#ifndef CONFIG_PANEL_BOOT_MESSAGE #include <generated/utsrelease.h> +#endif #include "charlcd.h" |