mfd: motorola-cpcap: Drop unnecessary of_match_device() call
authorRob Herring <robh@kernel.org>
Tue, 17 Oct 2023 20:35:36 +0000 (15:35 -0500)
committerLee Jones <lee@kernel.org>
Wed, 1 Nov 2023 10:02:16 +0000 (10:02 +0000)
commit9f58744c5eee149fae13c64b0b8b5b4405de3aa4
treef6f7e3154db418177d906f988c5cc4c939f12958
parent831d1af85133e1763d41e20414912d9a1058ea72
mfd: motorola-cpcap: Drop unnecessary of_match_device() call

If probe is reached, we've already matched the device and in the case of
DT matching, the struct device_node pointer will be set. Therefore, there
is no need to call of_match_device() in probe.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231017203537.2700340-1-robh@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/motorola-cpcap.c