Re: [PATCH v5] serial/arc-uart: Add new driver

From: Felipe Balbi
Date: Mon Oct 29 2012 - 07:12:34 EST


On Sat, Oct 27, 2012 at 12:24:46PM +0530, Vineet Gupta wrote:
> On Friday 26 October 2012 05:40 PM, Felipe Balbi wrote:
> > On Fri, Oct 26, 2012 at 05:33:16PM +0530, Vineet.Gupta1@xxxxxxxxxxxx wrote:
> >> +/*
> >> + * Release the memory region(s) being used by 'port'.
> >> + */
> >> +static void arc_serial_release_port(struct uart_port *port)
> >> +{
> >> +}
> >> +
> >> +/*
> >> + * Request the memory region(s) being used by 'port'.
> >> + */
> >> +static int arc_serial_request_port(struct uart_port *port)
> >> +{
> >> + return 0;
> >> +}
> >> +
> >> +/*
> >> + * Verify the new serial_struct (for TIOCSSERIAL).
> >> + */
> >> +static int
> >> +arc_serial_verify_port(struct uart_port *port, struct serial_struct *ser)
> >> +{
> >> + return 0;
> >> +}
> > why all these empty functions with wrong comments above them ??
>
> Actually serial_core.c invokes the reqest/release callbacks w/o
> verifying for a NULL pointer check. Thus they need to be in there even
> if empty. I've removed the offending comments though !

fair enough ;-)

--
balbi

Attachment: signature.asc
Description: Digital signature