> +static inline void * register_netdev_devres(struct device *gendev,
> +                                             struct net_device *dev)
> +{
> +     struct net_device **p;
> +
> +     /* 0 size because we don't need it. The net_device is already alloc'd
> +      * in alloc_netdev_mq.  We can't use devm_kzalloc in alloc_netdeev_mq
> +      * because a net_device cannot be free'd directly as it can be a
> +      * kobject.  See free_netdev.
> +      */
> +     p = devres_alloc(devm_free_netdev, 0, GFP_KERNEL);

s/0/sizeof(*p)/

-- 
tejun
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to