Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp368610pxj; Fri, 11 Jun 2021 00:57:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZpfi+7Rot1obueMw88HKQ9EtriXd1rIJDIKJgJwpDUg0caaoXq8ZAXnHKj/rZgdkyMII+ X-Received: by 2002:aa7:d898:: with SMTP id u24mr2331738edq.172.1623398239847; Fri, 11 Jun 2021 00:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623398239; cv=none; d=google.com; s=arc-20160816; b=O9QNH6htvz4tJsQEVKbwMbhGhYUhVhomdIPo8y6pwZEUmgKOv6w8vmyshd2QyAFvFt 1z4EaGnwkCUYdI2lJzOvoL2XLt0DAoDTlV16orkUKGHzMlKruhWpUI+XFKhDpd74VqCd zrxUEggcPEyg/+tTrFOi7vb+TngwIIQWpO0bljLmyYvQ+ID3eU1BO4pIRaSLCd20AmRE 59KpVoWW57XEp1EUkPPZpuKn8pgPGIeu2FdTP8vc5DweERnZi24vdJ1sERL0gCiCbhZy lgxZADvZsFpcFXeefiLAfM4C3cuG9iSRLyfShvfOqb6dr4glpQDbwyE3hj/sLE+UQwMX g1ew== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=PAQZtYbOUKIUtGF0tVsvHsRvw4/iH/MayKKZuzkWlLI=; b=UcjPO5VozbdM4Yhzg5zRx+ThFDY2i0ZNhKo0hSENbEfEKucDAXKNQ/hhkrBGhtJp0b jRcBUWxB2gsvDlCGwN+9kVb0eqwMje0BBhmVGRE6VDBHa5FNBIJXEdL0yYtw4MBgZ401 Yt8SFY4/29jm9AW13B46+c/mVr57MZHkWIG+wpmiR19nWIRN6mm9F1c0oM85QJW+WIS9 0cHswcroV6bazohqEP77jnekM2NdWfktj1zrIkIZA2yir+tEpGdtOFbNaWL2zbgLVJDx OZPoU6kbrMFN8v+CRYqbYtZKnIzaeFXIRE07R8A766StXVfByoFskX07atYwVBceIHzO fv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=VGNo25da; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si4427081eji.86.2021.06.11.00.56.57; Fri, 11 Jun 2021 00:57:19 -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; dkim=pass header.i=@163.com header.s=s110527 header.b=VGNo25da; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231643AbhFKH4o (ORCPT + 99 others); Fri, 11 Jun 2021 03:56:44 -0400 Received: from m12-14.163.com ([220.181.12.14]:43088 "EHLO m12-14.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbhFKH4o (ORCPT ); Fri, 11 Jun 2021 03:56:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=PAQZt YbOUKIUtGF0tVsvHsRvw4/iH/MayKKZuzkWlLI=; b=VGNo25daxYDACzdMh2Xq6 HX9fvEuMhEk/H3wy6sYTCESy4UeX0JAu679inFT8SDZYGv+m9rCi0rJB2T+JGNML 25WcJ63QFFsTZ95kYK/TEEwZeqwSjH71dLe9TV/+Lw/Tm0vU6n5STG+1LIGGlPDg hHonWlv2eGNIXq3Nua+WsE= Received: from COOL-20201222LC.ccdomain.com (unknown [218.94.48.178]) by smtp10 (Coremail) with SMTP id DsCowAB3L21zFsNgwfyzOA--.22392S2; Fri, 11 Jun 2021 15:53:26 +0800 (CST) From: dingsenjie@163.com To: jk@ozlabs.org, joel@jms.id.au, alistair@popple.id.au, eajames@linux.ibm.com Cc: linux-fsi@lists.ozlabs.org, linux-kernel@vger.kernel.org, dingsenjie Subject: [PATCH] fsi: fsi-scom: Use module_fsi_driver to simplify the code Date: Fri, 11 Jun 2021 15:52:36 +0800 Message-Id: <20210611075236.59788-1-dingsenjie@163.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: DsCowAB3L21zFsNgwfyzOA--.22392S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZw47Ar1xKw13CF1xtw47Arb_yoW3AFX_Ca 48Z3ZrGr4UWFy7C34Dtw4YvryF9Fy5WFs3ZF4jqFZxKwnrZw1rAr1q9FW7XF4UWr4UAFWk A34xZF1ftr18JjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0m9aDUUUUU== X-Originating-IP: [218.94.48.178] X-CM-SenderInfo: 5glqw25hqmxvi6rwjhhfrp/1tbiZRauyF8ZPFl4iQAAsH Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: dingsenjie Simplify the code by using module_fsi_driver macro. Signed-off-by: dingsenjie --- drivers/fsi/fsi-scom.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/fsi/fsi-scom.c b/drivers/fsi/fsi-scom.c index b45bfab..91bb413 100644 --- a/drivers/fsi/fsi-scom.c +++ b/drivers/fsi/fsi-scom.c @@ -645,16 +645,5 @@ static int scom_remove(struct device *dev) } }; -static int scom_init(void) -{ - return fsi_driver_register(&scom_drv); -} - -static void scom_exit(void) -{ - fsi_driver_unregister(&scom_drv); -} - -module_init(scom_init); -module_exit(scom_exit); +module_fsi_driver(scom_drv); MODULE_LICENSE("GPL"); -- 1.9.1