On Wed, Aug 17, 2016 at 3:32 PM, Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx> wrote: > The rcar_fcp_enable() function immediately returns successfully when the > FCP device pointer is NULL to avoid forcing the users to check the FCP > device manually before every call. However, the stub version of the > function used when the FCP driver is disabled returns -ENOSYS > unconditionally, resulting in a different API contract for the two > versions of the function. > > As a user that requires FCP support will fail at probe time when calling > rcar_fcp_get() if the FCP driver is disabled, the stub version of the > rcar_fcp_enable() function will only be called with a NULL FCP device. > We can thus return 0 unconditionally to align the behaviour with the > normal version of the function. > > Reported-by: Sergei Shtylyov <sergei.shtylyov@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds