From patchwork Thu Jun 8 22:08:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9776713 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 99AC660393 for ; Thu, 8 Jun 2017 22:12:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A68C285CF for ; Thu, 8 Jun 2017 22:12:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7ED64285D3; Thu, 8 Jun 2017 22:12:10 +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 1A399285CF for ; Thu, 8 Jun 2017 22:12:10 +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=FqgynE+DL9aymk4GgZjYGR9yacPW8Qo8DgGOQFIz3vY=; b=VDH9pbNHF3d83orE2omLquG8sO wAxSlWZSVPZjwNVylRsT/edbFLqKPKYU6EUS3E5OgdiMIFaSa29YEWUFVBiwSjeWt7S27pPhkx4+m WeTdbBmByza6hZy17I3mfRx5U1JKdsypGXNgLlWL1brWF3eZSjcznrNykJbflqN4FrgwE5aOJLhke HEe+j4kNqhxImOWYkaza37dB2Uzd6/xAJ5wiRCnJXlO+mvkZ4dPMx9x1JGJHPjT9rydNk0jQs8iZi OGbqmte7HejLVT2pbIQgzwthXMXIeLedWQUkwXPYL5WdqbgLQFzsFLBnG7e8BJ9z/ASQ51466s4Oh tQp7EfRA==; 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 1dJ5ey-0004kE-Vl; Thu, 08 Jun 2017 22:12:09 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dJ5eZ-0004QR-A8 for linux-arm-kernel@bombadil.infradead.org; Thu, 08 Jun 2017 22:11:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=tLGh6gDeIY4optK5O6YmKmy5z2SNh5+vefXKpBnMZ3Q=; b=jCpTqRkf7J6OgmsqqTJmfiTzd JGhhC6KnonnhrrRpL3Xufhc1NqsoQAGOHkVrCHszrmDM/UyCCyey4WpsgUaol4PrKmD8MZotfd1ur QFOlVs1JeZfD9Z/1NJQpLFfzlgKeAnjXPbAajetCDAKuf3FG5x4d0lQs/7bK0hXeAIU5/DjhpUlC8 ht/n+ucq4fsES7GVkrihBvhBzH9HDwtmX/O/I9gjWcehQkMlsga7ltSRRdDayblRoHueXYMrMP9J8 r/zRJn9RuLhvsi2KvOfuP5iklVpf6FqBofWmr4qC20NLKBfgPiLHP0Eomdp80UU9BKjuUOPpjxp54 EYz2ihMzw==; Received: from mail-pg0-f48.google.com ([74.125.83.48]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dJ5eY-0000M6-0X for linux-arm-kernel@lists.infradead.org; Thu, 08 Jun 2017 22:11:42 +0000 Received: by mail-pg0-f48.google.com with SMTP id f185so20189594pgc.0 for ; Thu, 08 Jun 2017 15:11:21 -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=tLGh6gDeIY4optK5O6YmKmy5z2SNh5+vefXKpBnMZ3Q=; b=gyI1hqSN6pxDwlOb7m0fs8sub3gK6M1R6hcfsqZpHHGeRV8zRAq3wUIi9pnv6W0kVu 6IrEFT8QtcR+4xZEWLHYOSJeu/MN5kurJSkDtUvN7FDX83BS/+rGbwDXUxRxVcJ/OXpy mFX1FSqi8Vjld2Q1yQW0HmRGFjLYvZ6tDXfbA= 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=tLGh6gDeIY4optK5O6YmKmy5z2SNh5+vefXKpBnMZ3Q=; b=PO8jHVPaqUkB3GA75e9wM4TmJ3IausdQUXub9zN6D5Y6hBMV7Yaftplak7KJ2F3arT Lv3e9+JgI9cG71k5UT0EReKrZAcu5u1qhMkhtVEZ5ijMcfUe6tUPZpXR6fnVWyXKTQCa NgacqiBE/aKfUfoC/0aKAUzeZGf3mooepJf0oi7Htdt18F/ihplMFS/Di39bqjlfj1+2 +D8XR7RTfeP+60XGH46KKJ6/z/s42IfmB0U/zjSaTkD5yrIrIhgWRnZCf7d2oU7yB+iY c4lFCXhLOyWz4O2IsS7vjSK10lCbA6jWO7a0SDq443HN7pNqpSaKxSvWQ0/IKKyTU1/g 3TZA== X-Gm-Message-State: AODbwcAHwd7liSE/VbrnKxvDonGGfW4r5rGdEIOYwbl7WIUtAAn3Vqk9 WVi6CBrZ+mxxBdg6 X-Received: by 10.98.202.68 with SMTP id n65mr39647673pfg.158.1496959817044; Thu, 08 Jun 2017 15:10:17 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.87]) by smtp.gmail.com with ESMTPSA id r85sm11963639pfb.61.2017.06.08.15.10.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 15:10:16 -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 v6 6/8] regulator: hi6421: Describe consumed platform device Date: Fri, 9 Jun 2017 06:08:39 +0800 Message-Id: <20170608220841.26531-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170608220841.26531-1-guodong.xu@linaro.org> References: <20170608220841.26531-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170608_181142_137927_732F6E3B X-CRM114-Status: GOOD ( 11.50 ) 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 Acked-by: Arnd Bergmann --- 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", },