diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-02-24 19:27:38 +0200 |
|---|---|---|
| committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-03-10 18:02:31 +0200 |
| commit | 09965a142078080fe7807bab0f6f1890cb5987a4 (patch) | |
| tree | df347fe73eba57c25847fc6f9305a8ce9ca97286 /drivers/auxdisplay/lcd2s.c | |
| parent | 72e1c440c848624ad4cfac93d69d8a999a20355b (diff) | |
auxdisplay: charlcd: Partially revert "Move hwidth and bwidth to struct hd44780_common"
Commit 2545c1c948a6 ("auxdisplay: Move hwidth and bwidth to struct
hd44780_common") makes charlcd_alloc() argument-less effectively dropping
the single allocation for the struct charlcd_priv object along with
the driver specific one. Restore that behaviour here.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/auxdisplay/lcd2s.c')
| -rw-r--r-- | drivers/auxdisplay/lcd2s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/auxdisplay/lcd2s.c b/drivers/auxdisplay/lcd2s.c index a28daa4ffbf7..c71ebb925971 100644 --- a/drivers/auxdisplay/lcd2s.c +++ b/drivers/auxdisplay/lcd2s.c @@ -307,7 +307,7 @@ static int lcd2s_i2c_probe(struct i2c_client *i2c) if (err < 0) return err; - lcd = charlcd_alloc(); + lcd = charlcd_alloc(0); if (!lcd) return -ENOMEM; |
