From patchwork Fri Jun 2 08:51:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9761995 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B83D2602BF for ; Fri, 2 Jun 2017 09:05:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE57E28565 for ; Fri, 2 Jun 2017 09:05:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A284628569; Fri, 2 Jun 2017 09:05:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B37D28565 for ; Fri, 2 Jun 2017 09:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=o/CgzHmSPkfm9BeZ5jf8oq055ivy91SKycS8KsI5kpY=; b=uzMei5vgPzmNDlKAPWuzrCy/8o 8lAqABZJiTFWDM7RtFfenzGHVfg8WRHIY9BLh7xgOtIDEdhaGUXl8cT4oF9xqLaiP4zKDwjhTnXpJ 5q9mA1huRj7bdKBWIsgSqk7YnEkaME6l+57hOfmAPF97fPEsKuAjcqzQxhDb9YGa+VzJutKTkmPxn nI6asGzBtRWb0nfwiGiz1D+wigu3O8dtgTsRJoasWJmILDVBxZohz4BqP83l+dPXF43vVxoAXYZp4 9ymwqK0RHhj0uaPmx0Xe1Mi8/9iZAeihVxwd1gHgGYFiYqXGI1zTlzdpQsUymBRzPzrUssnD8kVQe Kfr5I0wA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dGiW8-0007pN-S7; Fri, 02 Jun 2017 09:05:12 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGiW6-0006ZZ-WF for linux-arm-kernel@bombadil.infradead.org; Fri, 02 Jun 2017 09:05:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wZ9O1F8Th0ohgkio0+Cn+PrpHKYMmRvqtp6KSShI8Vo=; b=jEbxYH6yAF/WsCO1Kq4tHX+/i 5AXZNIkuJRYyPWwiHjKwu+zaNUolAY9IIEH5TsiD9YhZaWCQJbE4Y+b21RmKjJZ1rajz3lz0+LDHC ZH4qp0vuNwvOW2zSljIxo+FQR40Zy084jJvCJOLWu80e9lsYxKZoxKODLvC7HSCjAZUs9wJNVs2xO 5KAHBP6M4LVgV81lx0HkMGgfuQ8mv5LiVOoYoEcD1KqyoyxE22/R854xKebIcGdd8YxixlGRGtMEH gaxLOCijfqM/51LNbuzD96VHGV17C3roWe8cXtdzdr/R8+XrGZj6vwRI6rh122MY7EqXHWvP95gIN P6QDam9UQ==; Received: from mail-yw0-x22c.google.com ([2607:f8b0:4002:c05::22c]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGiLd-0007W2-DB for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 08:54:23 +0000 Received: by mail-yw0-x22c.google.com with SMTP id b68so30444046ywe.3 for ; Fri, 02 Jun 2017 01:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wZ9O1F8Th0ohgkio0+Cn+PrpHKYMmRvqtp6KSShI8Vo=; b=hwWZHxtWj1H//dpyj/sw3mAfc1Nm2YLukc10Q73fQVa3ugLMaSDsuig4koCa4x/2gW rBCNI+GInjL7n2W8M6QuMAkmWMrQlUEEftqnOeICaWZ3MQd/89L6vgy2O7o17CD9WSya zlCRsq8O/hFqIQQOZTzeXqagDcx+hNncosGKg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wZ9O1F8Th0ohgkio0+Cn+PrpHKYMmRvqtp6KSShI8Vo=; b=DsooFTaGzOqk/5Q2udSJU9gltI8le8LnGlcVEryV6pi7PDbvCwSXHuRTxNU/JtKcB9 9edfuAc3m/74dqaOaW2IExQMs31ZIP9IYB+YTlE81ghPnolb1UCi842w7IHuPFB6Z/PW LHH6ECwi7Zky8edXlRroGp0t2IzN1zMuS5PvEBRn5eAuMXOE+M7eKk0NkKJLS+bk1db9 aR1/7PjuUMMsDfEx0YY5SJsD9PpNXIGDqnNn9DAYIpjtJnyyn15/bZgHFy9nJ/PoTsde SVfm82ZrHgmI50dUrWCkDmdXYoHii90T9x7zqJ5SZUFDDd0BPziAcvI0xUwZNCRiIH62 9bew== X-Gm-Message-State: AODbwcDy/NXZn/kfB7/J7IthYPfLvm8RfI6WkKyAriB6iU+G0yRtGhRA C+nPbh6QPixFvjG+ X-Received: by 10.98.194.132 with SMTP id w4mr5768039pfk.176.1496393530223; Fri, 02 Jun 2017 01:52:10 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.223]) by smtp.gmail.com with ESMTPSA id d185sm32608146pgc.39.2017.06.02.01.52.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jun 2017 01:52:09 -0700 (PDT) From: Guodong Xu To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, lgirdwood@gmail.com, broonie@kernel.org, khilman@baylibre.com, arnd@arndb.de, gregory.clement@free-electrons.com, horms+renesas@verge.net.au, olof@lixom.net, thomas.petazzoni@free-electrons.com, yamada.masahiro@socionext.com, riku.voipio@linaro.org, treding@nvidia.com, krzk@kernel.org, eric@anholt.net, damm+renesas@opensource.se, ard.biesheuvel@linaro.org, linus.walleij@linaro.org, geert+renesas@glider.be Subject: [PATCH v2 4/6] regulator: hi6421: Describe consumed platform device Date: Fri, 2 Jun 2017 16:51:15 +0800 Message-Id: <20170602085117.27474-5-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170602085117.27474-1-guodong.xu@linaro.org> References: <20170602085117.27474-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_095421_558460_57EE3703 X-CRM114-Status: GOOD ( 11.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Guodong Xu , hw.wangxiaoyin@hisilicon.com, Jeremy Linton , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The hi6421-regulator driver consumes a similarly named platform device. Adding that to the module device table, allows modprobe to locate this driver once the device is created. Cc: Jeremy Linton Cc: Mark Brown Signed-off-by: Guodong Xu --- drivers/regulator/hi6421-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c index 62c5f54..259c3a8 100644 --- a/drivers/regulator/hi6421-regulator.c +++ b/drivers/regulator/hi6421-regulator.c @@ -621,7 +621,14 @@ static int hi6421_regulator_probe(struct platform_device *pdev) return 0; } +static const struct platform_device_id hi6421_regulator_table[] = { + { .name = "hi6421-regulator" }, + {}, +}; +MODULE_DEVICE_TABLE(platform, hi6421_regulator_table); + static struct platform_driver hi6421_regulator_driver = { + .id_table = hi6421_regulator_table, .driver = { .name = "hi6421-regulator", },