From patchwork Tue Jun 6 08:51:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9768319 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 1E06660352 for ; Tue, 6 Jun 2017 09:10:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15D5E28285 for ; Tue, 6 Jun 2017 09:10:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A3E528474; Tue, 6 Jun 2017 09:10:39 +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 953E628285 for ; Tue, 6 Jun 2017 09:10:38 +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=BhgVBChBNqAZDsL5s0TqkBBT05 hZ5eDDCn93p0n87rk6N+bWykttC91JoBnftPHuYPwKCoOrweP7eu6eqXxejhm/lP0QUWgf92uJr/s ZXa4M7UtaVx964xepeXwy9Q9lrsqNJSevQLCFcwZi7BlhHGcCBmcO5pF0GQNcjLfos8MG2DDBD6VJ KGh30zxWqxT9grhXVOrFZVot9Z182qY+XKgD0w5ZOOPrIL7CiyxDkeN2yAsEq6R86OqPmG+uLlmqR 8IUnZjtXFyewMKkNKS0L3IGVijcKhUZC1gqoemZKIpM44ljzDqAcSVi4Kvv1RWeazLFoSTM+BLXMQ qXzpzbVA==; 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 1dIAVZ-0008Dt-KM; Tue, 06 Jun 2017 09:10:37 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIAVX-0006pK-Se for linux-arm-kernel@bombadil.infradead.org; Tue, 06 Jun 2017 09:10:36 +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=iqMaQizskmEoXlxtomBVhU71I t7E4QspOt5H60oqxJ5gJvY6xTxwtYT9asw841SqDCk3A+oyhgtTh42QbZOOtkuDi6w3wLJnDcVPAn 1QEeoj9JaJP9XFrBojuWHhoiX9Xvpl8b083YWoXC4EVKlLtsmUQi2mbkWhlpJIW63nafsouF9A+d+ iHj4gBVHfuagKubjHAnO5DwpXRm9+9KWf/uP/ua/CbcaRfS1abjxPqD/95KCYbVPFKCP4dgsJa0jl 86jZCbRogxb+sLybSvltntUJAbirjZjgA3fPn9Z5R92E3VwQQdYuKSAKKkUsh+rw7I0tQ3x0vBLD6 rIEz+yooA==; Received: from mail-pg0-f44.google.com ([74.125.83.44]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIAG1-0005o3-CQ for linux-arm-kernel@lists.infradead.org; Tue, 06 Jun 2017 08:54:35 +0000 Received: by mail-pg0-f44.google.com with SMTP id f185so32374544pgc.0 for ; Tue, 06 Jun 2017 01:54:12 -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=gYPd0juhp/d7IPVmuvoGFAdH+pK5TcK8AmHas1oc2pE8NOUlSX492v19my+IZEQyIi 2hv4GtNn10/rZeYvMVI6EMihcowi8lZNDO8O1lWNtj/SWLRHMwUKa6ADu3qwja3MMh5n mtKz74PfKINdK4N5ZcvvwjOkhswYDtXgIqTWM= 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=LMP/hQkbiIF7a1hDi8U6tGZr4yGI94Kb3j5QLwSUkWmgg8Wi6VjcvybnDAqhynrmcd PorSRn9Vrp700qJ0iul8YTNKazYhKxo3vz2yV1g9wrhD0gVk3a18NffK63dnUD/7qh8x Ubwbct9ad2CQYTiJmR3NRt8mjtWlL+dOSpblJUQwSeQmpbTM1VR/bl/jny1r3vin/jfe obeb89QNN5jkMWEa2AlznEzMSQ1bR2XMZHNE5bHwZk+1QGILX05vPTS0XMRO2BYNCScK 0tkwNLJeCTip5zscJtH/vp7RGqF8WvFXuoeAh0kJCjask1qYMI103slFTCw4fNaMcNec ieUw== X-Gm-Message-State: AODbwcDxnd122OvyhwIrZ1tRrUN7Wop6PqSfW4w/tX/LXcj/IdvN2GJm EZJesbg21rmVJMws X-Received: by 10.98.25.19 with SMTP id 19mr24893631pfz.146.1496739191399; Tue, 06 Jun 2017 01:53:11 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.173]) by smtp.gmail.com with ESMTPSA id b14sm49851988pga.12.2017.06.06.01.53.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Jun 2017 01:53:10 -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 v4 6/8] regulator: hi6421: Describe consumed platform device Date: Tue, 6 Jun 2017 16:51:41 +0800 Message-Id: <20170606085143.13154-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170606085143.13154-1-guodong.xu@linaro.org> References: <20170606085143.13154-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170606_095433_558441_6A0D87C5 X-CRM114-Status: GOOD ( 11.49 ) 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", },