lkml.org 
[lkml]   [2014]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7 04/33] net: set name assign type for names assigned using a static template
On 07/10/2014 10:17 AM, Tom Gundersen wrote:
> This covers the trivial case:
>
> alloc_netdev(_, "foo%d", NET_NAME_ENUM, _);
>
> Signed-off-by: Tom Gundersen <teg@jklm.no>
> ---
> drivers/net/can/dev.c | 2 +-

> diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c
> index 9f91fcb..2441348 100644
> --- a/drivers/net/can/dev.c
> +++ b/drivers/net/can/dev.c
> @@ -565,7 +565,7 @@ struct net_device *alloc_candev(int sizeof_priv, unsigned int echo_skb_max)
> else
> size = sizeof_priv;
>
> - dev = alloc_netdev(size, "can%d", NET_NAME_UNKNOWN, can_setup);
> + dev = alloc_netdev(size, "can%d", NET_NAME_ENUM, can_setup);
> if (!dev)
> return NULL;
>

For can/dev.c:

Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>

--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-07-13 02:41    [W:0.292 / U:0.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site