From patchwork Thu Oct 28 17:23:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12590653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 781ECC433F5 for ; Thu, 28 Oct 2021 17:26:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 412EA60C40 for ; Thu, 28 Oct 2021 17:26:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 412EA60C40 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YWMB5lVxUUrmKzmVean4dOm+68Fxle7SV6Q0LQpWEmA=; b=peYoS91epJSh3R YjkMqi8tV+Rq2UPMv7z2IvkGr0nFntstxEYFM8eDoTTIovvLypgIyGxW9ddXnUR781osTWiMBhkXK MPvjZrAJ6yXDCjSWIZK6Jm+Uo2j7yAVHRoWbcctO9IZVlSjxPoRfT4ksBzIzAsaaoyChY2B3YGvmw 5BUNqrZyJVZpyqqD1ZqHUqOCuIQTHjuay0SRQrC3w0Z/UPmTL+y0JgYAUWFeLNhTSiEivXlmo/ej7 yXCcFWfkARzanhoFZcSgE76cZwIe8ADqLEGbJm5VoaIB+xO8YnjPqeOzDoNn80XaR80276PxgsXMD W5Kymx8uoA4fOkV2sP/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg98z-008jKe-M2; Thu, 28 Oct 2021 17:24:51 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg97k-008isH-BC for linux-arm-kernel@lists.infradead.org; Thu, 28 Oct 2021 17:23:33 +0000 Received: by mail-pl1-x634.google.com with SMTP id v16so4902186ple.9 for ; Thu, 28 Oct 2021 10:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+Wl3TUK3aCUY/WE6M31vfIUSYZE5a6wt51VNpZLD8VA=; b=kmNw/MN+gpxPUcTPOuN/pWTzakNMgWRdMYyc4PLuZJo+ZqVZcrYH6zIvh0XXz0BC0y 2QXUvpMykOwULs0jyvCqlO0Re+XSUxK4FwAY1r8gocKooQn7yWGYRorGiM+lRCYLdp0L IL4/fC9DjoSTTuUd3nH+2cNsCjGjj0uT5WZeFDnVq9zOsX0dS/IVwXq3fBp47KXYCeD0 UxqxKzb5+f/yXbrThTlfHTLbs4ob2RQVGyQPb5grQGLMS6eufLFsBkXS+O+r6SDuLS+n xxYrLFu0Yblt8TRoHr9WVVMr6Dqc5nzSdUGX+lPTou5VWBxZwWsfrLya64OWeBjANmgr 31ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+Wl3TUK3aCUY/WE6M31vfIUSYZE5a6wt51VNpZLD8VA=; b=AES1MNtYQS0xTwwQXZVN6IZHgqIcC+9ycttNr6dwJitzOR7DhhhuF6WryvsCV9REfr fj4AlW1vcpT3+JLJ3+KW47imX1+WCpH8CilsEAPq7wZMp6D2B9M5vvqiy9vbfG69gfpj o635OkPCA/yneA5mbWvUaoaiTuvVlIQ3bgHGYFo24/8mhgXnYahnvkBWBMDuz17cKwmv 91WWDzqynMnHx/Kdi+3BT5NQUbJ0NREAK0vtuO7Dj8g1jcRC9tAJ4hSZEj6ES/gxPmKN 8tEXAnojRzni3xIQfw7TFf1QjMKhEB4uoxFGvwoWfrDbE4Dk6l4pbo3kxGJ4hH6stvxT Da4g== X-Gm-Message-State: AOAM530eTD1MiT97MXm9WTdhgRgxIFl4hjib18nqlgRViTnr6Kfx4thc jaZ9XHMT0mKSqZC/9vzyBeg= X-Google-Smtp-Source: ABdhPJwC9jCSOMcjBzLhb8HGU99F7nCWkJ9p01CV7EFTScT6TEJFC3EXEwKwi9sTXVATGr4S06u+Eg== X-Received: by 2002:a17:902:d50c:b0:140:5f35:40f with SMTP id b12-20020a170902d50c00b001405f35040fmr4989860plg.39.1635441811487; Thu, 28 Oct 2021 10:23:31 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id l20sm3222499pgo.67.2021.10.28.10.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 10:23:31 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: rafal@milecki.pl, Florian Fainelli , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Thomas Bogendoerfer , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM63XX ARM ARCHITECTURE), Justin Chen , linux-watchdog@vger.kernel.org (open list:WATCHDOG DEVICE DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-mips@vger.kernel.org (open list:MIPS), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM63XX ARM ARCHITECTURE) Subject: [PATCH 5/7] watchdog: bcm7038_wdt: Add platform device id for bcm63xx-wdt Date: Thu, 28 Oct 2021 10:23:20 -0700 Message-Id: <20211028172322.4021440-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211028172322.4021440-1-f.fainelli@gmail.com> References: <20211028172322.4021440-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211028_102332_423342_CB9882EB X-CRM114-Status: GOOD ( 12.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to phase out bcm63xx_wdt and use bcm7038_wdt instead, introduce a platform_device_id table that allows both names to be matched. Signed-off-by: Florian Fainelli Reviewed-by: Guenter Roeck --- drivers/watchdog/bcm7038_wdt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/watchdog/bcm7038_wdt.c b/drivers/watchdog/bcm7038_wdt.c index 506cd7ef9c77..2535f450e8a1 100644 --- a/drivers/watchdog/bcm7038_wdt.c +++ b/drivers/watchdog/bcm7038_wdt.c @@ -223,6 +223,13 @@ static const struct of_device_id bcm7038_wdt_match[] = { }; MODULE_DEVICE_TABLE(of, bcm7038_wdt_match); +static const struct platform_device_id bcm7038_wdt_devtype[] = { + { .name = "bcm7038-wdt" }, + { .name = "bcm63xx-wdt" }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(platform, bcm7038_wdt_devtype); + static struct platform_driver bcm7038_wdt_driver = { .probe = bcm7038_wdt_probe, .driver = {