diff options
| author | Jaehyoung Choi <[email protected]> | 2021-07-30 19:29:05 +0000 |
|---|---|---|
| committer | Krzysztof Kozlowski <[email protected]> | 2021-08-02 13:22:18 +0000 |
| commit | 70115558ab02fe8d28a6634350b3491a542aaa02 (patch) | |
| tree | 00cca98ed2a82e5229b5236c19218bd350eb8d13 /fs/ext4/fast_commit.c | |
| parent | Linux 5.14-rc1 (diff) | |
| download | kernel-70115558ab02fe8d28a6634350b3491a542aaa02.tar.gz kernel-70115558ab02fe8d28a6634350b3491a542aaa02.zip | |
pinctrl: samsung: Fix pinctrl bank pin count
Commit 1abd18d1a51a ("pinctrl: samsung: Register pinctrl before GPIO")
changes the order of GPIO and pinctrl registration: now pinctrl is
registered before GPIO. That means gpio_chip->ngpio is not set when
samsung_pinctrl_register() called, and one cannot rely on that value
anymore. Use `pin_bank->nr_pins' instead of `pin_bank->gpio_chip.ngpio'
to fix mentioned inconsistency.
Fixes: 1abd18d1a51a ("pinctrl: samsung: Register pinctrl before GPIO")
Signed-off-by: Jaehyoung Choi <[email protected]>
Signed-off-by: Sam Protsenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
