ipack: Fail earlier for drivers without probe function
authorUwe Kleine-König <uwe@kleine-koenig.org>
Sun, 7 Feb 2021 21:55:55 +0000 (22:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 08:48:12 +0000 (09:48 +0100)
commitc31d32ba580d2f361e6169c093fdf624e5851925
tree622d0658948c2e1baaee05cf492217120294a820
parente3e3eaab2b486294501ae1cf3f56e22f2e992afa
ipack: Fail earlier for drivers without probe function

A driver without a probe function isn't useful as it can never be used.
Let registering such a driver fail already instead of failing every
binding.

This is only cosmetic as there is no ipack driver without a probe function.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Acked-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Link: https://lore.kernel.org/r/20210207215556.96371-1-uwe@kleine-koenig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ipack/ipack.c