Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp237970pxk; Sun, 30 Aug 2020 01:12:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuM3CfzNOIDZB4szPRER78kpgRLFzNQq/gXqdv3JT91yIUlS28qEh4dHxqT5t0q6Pr1BRm X-Received: by 2002:a17:906:4755:: with SMTP id j21mr7134469ejs.422.1598775175533; Sun, 30 Aug 2020 01:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598775175; cv=none; d=google.com; s=arc-20160816; b=SLmxbljWP48IL/7FksJCapUbdId3asqpN3BMnuMvFmz6X24QhF8uFNzePtUnrMm9gV J/Tgam8WSOkSnK1Q5woG+uf1TcmOPGovtwr+JrgHWJS+0VnlXHUUbyprmaVEV2UE5dxw Uy6c0qX+tIOcblL8hk5LXeErTxfwztwWwn8G7saatTFQ4695mZR65kw8KjsEgca/rEuu 6AEnIMFeGTekZ99bApjDXSpQO7HU9nqSxElXqfbRNCxfuqLGCDmCQRPH6gg3Jur0CXST 2wXBTvblAnmKt7t7AUCB/gj+3AlrRmzl+IiqlFD4EqqwfQmcJ+FqB6uyeduKqUyf3SUo Uu+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+jWyfqd0dQi5+sg2PWF7bdEdvEkZBfl5dY1QFhGfS9U=; b=qPQLWHAaORUoT1AscPy+CqEkp6ld8l6blShbcgf3R7zxYyZDju/7I2msXbxaQ4Nvzu fBbo6NfCAOqNMqY2ndR0pjdujhGlYdJWJ7PQI9oW/a5AQXvkT87sg8DaRE02cV8r2LlA GA6rNdzS8vBgHuLtlI9Pm1HgHdXToE/GCHmBVNnCRjqcHR76HqLmkALykaVu+9VrqxGC RvexwjP9gbWeM5axEqp23PtAJKdgmzHfEAtHBgfsR+JhKqLFf6+z2rc4Lf1lY8AQdL+V rZlI0bbwgU2qMKb1RnphlnEnScz+cCqRPLDcwWqklN0B+B1kbWxZ4RysJ20m0ca2VWuR oSHQ== ARC-Authentication-Results: i=1; mx.google.com; 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 eb13si3797051edb.446.2020.08.30.01.12.32; Sun, 30 Aug 2020 01:12:55 -0700 (PDT) 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; 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 S1728690AbgH3ILU (ORCPT + 99 others); Sun, 30 Aug 2020 04:11:20 -0400 Received: from gofer.mess.org ([88.97.38.141]:49287 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727859AbgH3IKe (ORCPT ); Sun, 30 Aug 2020 04:10:34 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id E4624C63F6; Sun, 30 Aug 2020 09:10:04 +0100 (BST) Date: Sun, 30 Aug 2020 09:10:04 +0100 From: Sean Young To: Vaibhav Gupta Cc: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Mauro Carvalho Chehab , Sergey Kozlov , Abylay Ospan , Hans Verkuil , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan Subject: Re: [PATCH v1] [media] netup_unidvb: use generic power management Message-ID: <20200830081004.GA17376@gofer.mess.org> References: <20200728092717.937023-1-vaibhavgupta40@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200728092717.937023-1-vaibhavgupta40@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 28, 2020 at 02:57:17PM +0530, Vaibhav Gupta wrote: > The .suspend() and .resume() callbacks are not defined for this driver. > Still, their power management structure follows the legacy framework. To > bring it under the generic framework, simply remove the binding of > callbacks from "struct pci_driver". Unlisted fields in a static struct initializer will get set to 0 (or NULL for pointers) already. Removing the NULL initializers will not change anything. Possibly you want to remove the redundant initializers but your commit message should say so. Sean > > Signed-off-by: Vaibhav Gupta > --- > drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c > index 80a7c41baa90..6f3125c2d097 100644 > --- a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c > +++ b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c > @@ -1016,8 +1016,6 @@ static struct pci_driver netup_unidvb_pci_driver = { > .id_table = netup_unidvb_pci_tbl, > .probe = netup_unidvb_initdev, > .remove = netup_unidvb_finidev, > - .suspend = NULL, > - .resume = NULL, > }; > > module_pci_driver(netup_unidvb_pci_driver); > -- > 2.27.0