Re: [PATCH v2] usb: ehci-mxc: Use devm functions to simplify error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 17, 2012 at 12:34 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, 16 Apr 2012, Fabio Estevam wrote:
>
>> Use devm functions to simplify error handling and also make the code a bit smaller.
>>
>> Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
>> ---
>> Changes since v1:
>> - Simplify a bit more by using devm_request_and_ioremap
>>
>>  drivers/usb/host/ehci-mxc.c |   41 ++++++++++-------------------------------
>>  1 files changed, 10 insertions(+), 31 deletions(-)
>
> It's silly to change just one driver this way.  How about updating all
> the EHCI platform drivers similarly?

Ok, I can do this for other ehci platform driver as well.

I will wait for Mark´s devm_get_clk patch to reach linux-next, as this
will simplify things even further.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux