From patchwork Sun Mar 19 04:08:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lizhe X-Patchwork-Id: 71703 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp577010wrt; Sat, 18 Mar 2023 21:30:53 -0700 (PDT) X-Google-Smtp-Source: AK7set+3zL+wPce+LwFO2jzszi5F6RsTdAdg2aUFrT2rtJWlWHVtYY66HaxaVmIOYyDg+vQAY/Rf X-Received: by 2002:a17:90b:164f:b0:23f:1210:cea4 with SMTP id il15-20020a17090b164f00b0023f1210cea4mr13951383pjb.18.1679200253627; Sat, 18 Mar 2023 21:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679200253; cv=none; d=google.com; s=arc-20160816; b=hMGd8bit7AgX3/aQJiAvmjSXHd9BsjoGZofTZrfGUJ1VQjG6pXCkHadRqAWsfbG815 kjMtUhoomPKbHlF+XIuLzUS+vPnSlmTcFfOHIsMUdKpkR2ScwLVdl1rj2u9jTBf1hQAy UJPy7l3IYI6gBkb+9RyQ3ZDJl4xetktDY9W2xTxwvbfPVi9RXmf48zXUf2ZIiHhKoxlk oM3JxMJyyWfwmI0jXlYSyLJ/dE08steB9ekAQpDiJUZcBUeZOaVWS8s3VcTDz4Uz0Raz XoImJDAf8POrrgqMO1ZknJqSHqTSdNqBXhKvGS7Rp8sRwkFTLZCaV4K9v+OP8n/Gn8J6 4WeA== 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=uDRdZNkYqSVHlM7n9lW3x7G96oPXX7mnjHXy7vrE5NE=; b=LSHxBC9MpMiWKy7E3A3JflklFEcUXIaq+hExNAQUiUGW9R2df+FTEdpBKxyFeTFzTs wpTSZv63HMqzMYmBPLZ/vnpfW3atI4ut4JipDXm0aqQfiJ2ZrGka2W9cb4Ixhfh5aioU tO9jcNWy58Orr1yFGI5yZTRMZK2O9o+3DBgaqjsYX5yNf7qyOndvRXdvurEleIt28UXt B74mz/mmb/4KW/EsN8BqTJNHxvEuAPBJ5XsafLZwaFmv37Zh4JKhLtxNf//5vRfdCTWT cIkiaIp6pRUsJ7G7RKFKODgjpUJe5WdwZOOigjEBOC14k28U79tjDMXAMFN6wTLaKYkN mXtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=N4G6nNSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mt5-20020a17090b230500b0023fa0aad5c1si621302pjb.146.2023.03.18.21.30.38; Sat, 18 Mar 2023 21:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=N4G6nNSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229906AbjCSEI7 (ORCPT + 99 others); Sun, 19 Mar 2023 00:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbjCSEI4 (ORCPT ); Sun, 19 Mar 2023 00:08:56 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D0D4410A88 for ; Sat, 18 Mar 2023 21:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=uDRdZ NkYqSVHlM7n9lW3x7G96oPXX7mnjHXy7vrE5NE=; b=N4G6nNScQJ5rjlfJrJHHu h4h340z8SnM3oTf2ZAGqgog3V7J+Ixt4RI8BgOo//cUlYfrz0v4yQnXEYTJR2YKQ 1rmPTf3JBXZnuAe5NQqn72LA6HM2XMR9pUEDTLsveoEVaYh3YXdSIXcQEVJV5bzN 89QIU876gyOW/0hSGvd5RA= Received: from lizhe.. (unknown [120.245.132.192]) by zwqz-smtp-mta-g0-3 (Coremail) with SMTP id _____wCXyrixihZkemSoAQ--.33332S4; Sun, 19 Mar 2023 12:08:40 +0800 (CST) From: Lizhe To: fthain@linux-m68k.org Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Lizhe Subject: [PATCH v1] nubus: Remove redunant driver match function Date: Sun, 19 Mar 2023 12:08:16 +0800 Message-Id: <20230319040816.232446-1-sensor1010@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: _____wCXyrixihZkemSoAQ--.33332S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7Jr1kZFyxJFy7AryftF45trb_yoWDZwbE9w 4UZr93Xr15CF1xKw4fWwsrZFyqyw4vqrZ5JFWrt393A3W7Xw15ZrWDZry7Kr15WrWFyFnF g347Jrs7ZFWDJjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRtFApDUUUUU== X-Originating-IP: [120.245.132.192] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/xtbBlww3q2I0YaE4agAAsD X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760769085247097239?= X-GMAIL-MSGID: =?utf-8?q?1760769085247097239?= If there is no driver match function, the driver core assumes that each candidate pair (driver, device)matches, see driver_match_device() Signed-off-by: Lizhe --- drivers/nubus/bus.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/nubus/bus.c b/drivers/nubus/bus.c index 17fad660032c..72921e4f35f6 100644 --- a/drivers/nubus/bus.c +++ b/drivers/nubus/bus.c @@ -14,11 +14,6 @@ #define to_nubus_board(d) container_of(d, struct nubus_board, dev) #define to_nubus_driver(d) container_of(d, struct nubus_driver, driver) -static int nubus_bus_match(struct device *dev, struct device_driver *driver) -{ - return 1; -} - static int nubus_device_probe(struct device *dev) { struct nubus_driver *ndrv = to_nubus_driver(dev->driver); @@ -39,7 +34,6 @@ static void nubus_device_remove(struct device *dev) struct bus_type nubus_bus_type = { .name = "nubus", - .match = nubus_bus_match, .probe = nubus_device_probe, .remove = nubus_device_remove, };