Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4419011rdb; Fri, 15 Sep 2023 01:14:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQ0Def+YLU1o2yOWO353cVqgW5v6gofjPH7TgI0tbUDACvmRJ+YMXERqHyg8fZOmrgbQyl X-Received: by 2002:a05:6a21:9995:b0:14c:7021:b3f1 with SMTP id ve21-20020a056a21999500b0014c7021b3f1mr5560160pzb.21.1694765697451; Fri, 15 Sep 2023 01:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694765697; cv=none; d=google.com; s=arc-20160816; b=VRNCAEYEaicE2VPlUK3kuo2KjwAVctFO6Cvc5qRmHgTGfib71O/TyPxRA6KWa8Cyg5 9w/MHrcPb12fD2N0YtlxzEQ+f24hPgoxzH5g8ngJRQuSPml6nI1+xYA/kZEj8XLywJeC iA5MRQsSJ5fHvo3rSCjVeeJxIv4T2pHe0XN0inP0XYW6Dvkh+cm9TAg05f6EpVFJivBs 8aPSj9uXwvIEuFdW7t9qJjTrVjz4jbdLBpn+MVsbbT05ELu3qk1BiERL0X1SQAfjTDih melfmJRXx7fW+Y1zVkLH6TbW6c94rvNHR/7Ztptj3PVlnxleLjjK2WAauO1WUEIng3Cu WuUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=BKUNCerqT0EM2k9cvY1FFWJaoXWoeZRckVgyndi2wwQ=; fh=GnRkE1unbYvZQwt7jukbnzJcyrzhRWx0wr0+M2NFYvc=; b=FXNOFVMh5/ANfTbOEMvSnmybnzLG82w8KniDauVINvjk/8WyHgZxjibYcHCxrXe14k AOII/C0UyRJIs3fHoEPwN0iTFWROdLtfvahN2fjWByBKlboIhgH7JPr/H7M69p1XZlH8 06pYqo18yzXYVIha0yk3BsnIwhP8+Rs287GfieLs9ytjkemKWMH+1ltehWTYOo9fEdl9 I1PqNfC6YwQhkmA2iUK5uhfVG3gqZpr4xNAYD1lcZsULgw0ZkmaSjlIP/6hlVV8G0xx3 Q3kIrmT+OMKM8TX37NTpRhCCVMDhpN2hVodImal+g95yL9bBRpuTJKvXElycG2o81lwu UJqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FpSNZCjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id q137-20020a632a8f000000b0056953da8282si2796389pgq.545.2023.09.15.01.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:14:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FpSNZCjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A3A8583B5AC5; Fri, 15 Sep 2023 01:14:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233224AbjIOINb (ORCPT + 99 others); Fri, 15 Sep 2023 04:13:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233011AbjIOIMn (ORCPT ); Fri, 15 Sep 2023 04:12:43 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B6052737; Fri, 15 Sep 2023 01:12:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id B84FCC116C9; Fri, 15 Sep 2023 08:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694765529; bh=R0YjWaaQfi5nulo62yoOeCTGIoxam2RFTE63jwiCrAY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FpSNZCjslJcCWgGXMFaBkQ09BNBpSwGDNWiLgc7HAT4ragNmVjihadqqpVvQAsPfx KtO3rVBliIHhYixXgo2Fqj/O5YQEcI4Ar+ki3DuQkU8RsqmtYV2Xkp5wIMly+bLa0a /ZL9auVbkzuB4/uBqkti/D0KtAwWg5odwhUitCb9U4eTpJ+khTu2P5zc8gmsiEaeQ3 Tp8lUDxpu/LIHOCR3oLPW1d7vWZQVnHAIDQWdDylXRxMhUvVY9VcK9jKM0f84zPZ7Q ZiR+FkcgX7cJorJKxVC2HjCbDVWE0QHFrwfSRaXYXU9CgLFKhaHr/ZjGrdApuyVz8L vpRMcB01ojo/g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6691EE6442; Fri, 15 Sep 2023 08:12:09 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Fri, 15 Sep 2023 11:11:10 +0300 Subject: [PATCH v4 28/42] ata: pata_ep93xx: add device tree support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230915-ep93xx-v4-28-a1d779dcec10@maquefel.me> References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> In-Reply-To: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> To: Sergey Shtylyov , Damien Le Moal Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Alexander Sverdlin X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694765525; l=1082; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=iQdf0+FvvFvVUiOq9gimGZkfb2i0Js2MC1h+Ul6CtHM=; =?utf-8?q?b=3D8RjktMz/Xlha?= =?utf-8?q?iBntulYXPzsVXoND9QuTSDeM7wL7ZLOwmsJc7F9ajymIP2xiegpp9B9QWN/cacmp?= BY8PCFVaBvgi0Qsk0KXMIG9EBunBmMy9EiLL0J93JoarqPY/XDrW X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:14:01 -0700 (PDT) From: Nikita Shubin Add OF ID match table. Signed-off-by: Nikita Shubin --- drivers/ata/pata_ep93xx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index 3f91b6cff353..47686dc1fed6 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -1022,9 +1023,16 @@ static int ep93xx_pata_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_pata_of_ids[] = { + { .compatible = "cirrus,ep9312-pata" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); + static struct platform_driver ep93xx_pata_platform_driver = { .driver = { .name = DRV_NAME, + .of_match_table = ep93xx_pata_of_ids, }, .probe = ep93xx_pata_probe, .remove = ep93xx_pata_remove, -- 2.39.2