Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2814194pxb; Sat, 30 Jan 2021 16:02:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7zfruZViZhBl9I9cWNxp61yjfvf+y0RXiOvvBuDJ+2xAHPfClvwE5e6qQz6uEeFnti3xX X-Received: by 2002:a17:906:bce3:: with SMTP id op3mr11038109ejb.485.1612051347215; Sat, 30 Jan 2021 16:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612051347; cv=none; d=google.com; s=arc-20160816; b=v0kcvX6I9qSJWLXmhgnLLfVu/+Z5OWx+Wltq4yDuRzjrOvuBlvN5Ly+Kx3ZxORq8mW /Zp3exlNEZ5dnLwcCmiciFluGNs8fDvQSSz7Honjnus9eSpIEI3cpUNBVo4aYSJ1kaGn TqsCJGYJVafpVKXJAwpzO/K7D6vLABX0aX79JeqXXwejf1lhuuv8QCcG325tAYlAy9x8 6Wd4Zs5nA98nzzyEg3KMGJWj1GDob6vzOlcUeCTMySkEc1AYcQcsdsWLTj2c0YAbaDeb m+zRDcoaeuGgQL7Dq0cGowp148YxSPZRKS84w63vrkAPGRiQTZ7xSqrRaqGUwQeFsb35 vk9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=4ClukBPu+CYzsZoBz7wV2vFswdP1FSRh8zSK4OVbxTg=; b=bB+p7txg/8TqzNT+xlRcNXzRqbNKTdxyAYZ/nqlde1MC8tFoh18z8iLP0zbDotTMCD UGu5pPDL+/bk1Dwen+cvaE0m3VybZXkm3TdLPN/JLhDG793qipWYy67JKamN+w53TN87 Td+PY0lbRMJIc4b9koos/v+3ncro5rwXoxI7ZnzbMHp/sZ249/9lCMYyslbw7b3REH7Z s/UlzlzrW2AaqGCKrHKJQsYOnPjDPJ17227oNBLi/oQsaXn3wAmm+5yXEfj4Vp4lnLCG LS/TG1kMVfGyv/5stwqjiO9xrLS/w5JLbJUUfANWWe/Gvd4RTQEeLVj0ZfUpP4/Q/Nkn 22dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LR8tfNCx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si8575188edy.14.2021.01.30.16.02.02; Sat, 30 Jan 2021 16:02:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LR8tfNCx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232696AbhAaABY (ORCPT + 99 others); Sat, 30 Jan 2021 19:01:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232499AbhA3XtT (ORCPT ); Sat, 30 Jan 2021 18:49:19 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 793BCC06178B; Sat, 30 Jan 2021 15:48:01 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id c2so14752851edr.11; Sat, 30 Jan 2021 15:48:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4ClukBPu+CYzsZoBz7wV2vFswdP1FSRh8zSK4OVbxTg=; b=LR8tfNCxCknUbtdIjDpZOfe2+uThFtGib/Yfq0wcUy1mi+le6/6wPRmpJmh4Co5Ipo KrGfVpsMfasytLcyfIwnUIwzmICWAqPuFuPGwm5/vr+qbkJqNTEHXy/4T3IekfaAiBtR f+jjBrnLNa0VkOK5w3soXT1boKghPyAm4mPY0stUvfBU4WgHvy41CMKaM18bOLL2K/rY 0yipkrTtBB/3rS4JMZTcwQDOYE7HEwot0GYSTwzn/bLIsGYP0tmQGhpfXDVPsuF49GWl RyaWFzhtW2eBXwRfFkCiMviK5lxQpl/U+zzuRyHWRSn2u5Xha210DVWqCVOESzi/DHR3 6ARw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4ClukBPu+CYzsZoBz7wV2vFswdP1FSRh8zSK4OVbxTg=; b=fI6keJQg5El1YO7mtXcQ8uCfKJWJJBaJoQh7v1o5U+hJOuv8Hq248jqVES6P2eJqaN GJFaj9QTLwtANY9EaEwROH3hH8halqs3+s/VSDZw3z1zFnIf7b0ymdPA8t8kf5A5O6p1 YdivlIIk5CJvKiycjB8bwisw8gwdPslxXnFRfipZfYxJb59TTYn4RilMC2VoxV29vfrX X/gxYRVoEtnrUdj9Hxcypd+6ModUYzV8001IC2viTiHcjUtjGmeq7YhF0lw0GLx2JG1+ RP1N8nXbq5UTjkF/utrkjsL5qsn3xwpp+8lFC3S4XXhtQ1cTjGqgEKlVNelE7ACHK5Bx G+Qg== X-Gm-Message-State: AOAM5319O4Z42fFv0MCjjS8MENwuxDscPBvHXNH9g57BE1bpJgP9gmgw DF+XNGIXqcWgHSJMvLletxmhh9t2JX4/J//C X-Received: by 2002:a05:6402:22a8:: with SMTP id cx8mr12211009edb.32.1612050480283; Sat, 30 Jan 2021 15:48:00 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id u17sm6628009edr.0.2021.01.30.15.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 15:47:59 -0800 (PST) Sender: Emil Renner Berthing From: Emil Renner Berthing To: netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-ppp@vger.kernel.org Cc: Emil Renner Berthing , Michael Grzeschik , "David S. Miller" , Jakub Kicinski , Paul Mackerras , Woojung Huh , UNGLinuxDriver@microchip.com, Petko Manolov , Luc Van Oostenryck , Jing Xiangfeng , Oliver Neukum , linux-kernel@vger.kernel.org Subject: [PATCH 9/9] net: usb: rtl8150: use new tasklet API Date: Sun, 31 Jan 2021 00:47:30 +0100 Message-Id: <20210130234730.26565-10-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210130234730.26565-1-kernel@esmil.dk> References: <20210130234730.26565-1-kernel@esmil.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/rtl8150.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c index bf8a60533f3e..7656f2a3afd9 100644 --- a/drivers/net/usb/rtl8150.c +++ b/drivers/net/usb/rtl8150.c @@ -577,9 +577,9 @@ static void free_skb_pool(rtl8150_t *dev) dev_kfree_skb(dev->rx_skb_pool[i]); } -static void rx_fixup(unsigned long data) +static void rx_fixup(struct tasklet_struct *t) { - struct rtl8150 *dev = (struct rtl8150 *)data; + struct rtl8150 *dev = from_tasklet(dev, t, tl); struct sk_buff *skb; int status; @@ -878,7 +878,7 @@ static int rtl8150_probe(struct usb_interface *intf, return -ENOMEM; } - tasklet_init(&dev->tl, rx_fixup, (unsigned long)dev); + tasklet_setup(&dev->tl, rx_fixup); spin_lock_init(&dev->rx_pool_lock); dev->udev = udev; -- 2.30.0