From patchwork Wed Jun 7 07:06:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9770701 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 630BE60364 for ; Wed, 7 Jun 2017 07:08:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DAE3284B2 for ; Wed, 7 Jun 2017 07:08:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40AD4284F1; Wed, 7 Jun 2017 07:08:35 +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 C9D65284B2 for ; Wed, 7 Jun 2017 07:08:34 +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=eWXGlFjcQAY2pj61N0yltsGuOn vtUW6wFMVQkXW0JqMqmBcQpjDGQPLcruUCYHtqoushyxMWYl7vZnvV1LbBVvjviRj+doQDgXWkMOA Zav4WpO9Tfj56CQWOAul+kDk038N6JAUI6rspO5vR9m5Ti8WzQpfPZg6zTb2PlAkoW0mUmW5FuGpw P/iYMXbMpj0n8rFJY8Ue9iv2sX55+UAi5ZP2AQZR6GE+N9PSkA8ecOpBt6BFL6ZfMYMpk2b7gstTA 4JLUiIsTJI/DZ62otj4OyXLprv9wpvqaqSI//Yh8/N0U/s23o4ya7eIeNhrlSZCpy01fUYIGx3pHc 0wZH+FkA==; 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 1dIV4z-0001Zr-Ge; Wed, 07 Jun 2017 07:08:33 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIV4j-0000YI-Si for linux-arm-kernel@lists.infradead.org; Wed, 07 Jun 2017 07:08:30 +0000 Received: by mail-pf0-x234.google.com with SMTP id l89so2418920pfi.2 for ; Wed, 07 Jun 2017 00:07:57 -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=OGvlxKmAAT7t5GNi4P6jaH/UdhL45lqadf3G/dXFm7/GjUSIy1e1vWFgxzjFeDgHZQ DF/s/yk4M+pqgriYBGoV89P7Wfn1xczeTO8USiWPLgZIOXSBclwVEwu99VQSR6zgcx// 1rtrT/RuYd3gFoGCf+syUICO7Upy4qI2jv7/M= 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=uoZQtgd0QCCyTMBWogBzsRb2XdBRndQ7bNK4J22qreEiYvhSB7zITE1l/mdRraRI2S BCnHdgzkZ20WQOAJZRfiXgXfz8k84/25oqA6yEU/Yj9FMXIb2UsqucLU75deQi06zwAU wijTAWW4yFqcp+OwtWBDBWSb/VSeyCXecwpKKqI1eSgSSRYkcGEZK8j66wzTm7WLImbW G3GQwFKGL61LbkE3EUqpQ8HJ5jBLDPJLAgwh6RD4CHIjY3M53oyh+jTLu8DmHvi8t4KY Kflml2nYVJV55I20fL1APfNtzs3Q/u0TXpcQdXBQ7TFjCsEZR7d8sChIUO007O1g3BKa On6w== X-Gm-Message-State: AODbwcCguzKnQ+Q3VBfxru0Z8hcQ7pVB9srQked/8P2aSFYvMGsqWwLD rjBXxLbs5faSGmVu X-Received: by 10.98.71.84 with SMTP id u81mr29873697pfa.102.1496819276993; Wed, 07 Jun 2017 00:07:56 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.247]) by smtp.gmail.com with ESMTPSA id h84sm1849354pfh.45.2017.06.07.00.07.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 00:07:56 -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 v5 6/8] regulator: hi6421: Describe consumed platform device Date: Wed, 7 Jun 2017 15:06:04 +0800 Message-Id: <20170607070606.8889-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170607070606.8889-1-guodong.xu@linaro.org> References: <20170607070606.8889-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170607_000818_390639_2571ABB1 X-CRM114-Status: GOOD ( 10.68 ) 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 , 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", },