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: 103133 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp1163327obh; Tue, 6 Jun 2017 01:53:41 -0700 (PDT) X-Received: by 10.101.73.135 with SMTP id r7mr7326453pgs.224.1496739221653; Tue, 06 Jun 2017 01:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496739221; cv=none; d=google.com; s=arc-20160816; b=HnBMmp1pHRb0TPa6HPnO6SRMNOMnOqR8mabffVtQSofQo/eFhm943AyzM6ghfZ44WB OdFFIIM9ztYs5EWBCj7lE+kc5O9ll8Kxn6BbeshCqL5BdoevsoucOdGlaALUnlzvlTom aQ82vsdzQlSQn/pWxSLayK13IP4SHrxSL7Yqm6Mq0lGxaWG/ObQ0hvbMLuwdSDPKo7A5 On70G8S7otVIpQMfCCuV+lknYhfWFOjDCtNg4C/qwUhSDgW5XR2/yvggloJ3ki95He/e 2JU+7yraexhuAOnqFxVn0Bq81os9ioTU8GkTCLTBCCoh/c3LNwcJ/KsOWLWc/lpJxECO X+rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=wZ9O1F8Th0ohgkio0+Cn+PrpHKYMmRvqtp6KSShI8Vo=; b=DIxwTyf56xTlTzyldbSjTT1nHmn+S4ogUhs5HN1u1BNiqE9fdAxPUELVWTlSCFAWwG /9xE7JaNZwYXhHLdyolFaT4SbwCnPGSWsCa0jr55IjyjdUYOE4CIadjU1Ahn+P2omJZ8 ews7s7rKRP091NiMfNgp0wn8U8H+XxIOKokdlPK6uxWQgQD3kV1d0PqKjLOtn2P5tp1Y bL2ORPXdPbmDUOln+r+kXQLgHRE7R8d8zQgf8CbKQ48/0lOTJhUXazMY/11Lu9Iwh7sF mrfkGQlE8PPWMVDepyckj7OjsXYJt7+7l4EIIs+tXSSCQetN85qqvLPHNvCL8M2O2Gzf 6sLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si7388164pln.414.2017.06.06.01.53.41; Tue, 06 Jun 2017 01:53:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751557AbdFFIxU (ORCPT + 25 others); Tue, 6 Jun 2017 04:53:20 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:34424 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbdFFIxR (ORCPT ); Tue, 6 Jun 2017 04:53:17 -0400 Received: by mail-pg0-f42.google.com with SMTP id v18so22816822pgb.1 for ; Tue, 06 Jun 2017 01:53:11 -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=ZJ1qCKFvFwAMZWN+FkW8iz/mrBCMeKgJCBwr5C2ca2zxWS9LTvAafcI1+hfQW5PINN AT5+hVAtozRDIiQzA4C0z69oY7iYx6x+hxb1Vfjd7FKuc8eMZh8r1PP0k8YY9wLU9UeZ Hz+78uOCT6rcovfDq8aLaePWyJtUBFizcYpZMp12DcjmfKZOtErBr0CYr9kORqV31gtm Rzr703fouUxB2Hw1a83Oyy3Dxs8iOssdVSE7NaKkJA0xnMzZCQ/+V2AWihXIdPyu4fZN KhY3jKxT6FrgeRb44CkaBToBszYtoCuWaOmlcCgj8NAGenbQuS3ieZNYXY5yP7C/jttN cVMw== X-Gm-Message-State: AODbwcBAUCNDEUwnukVlpk0fNYSvcS5NR8WHbQEUbrm0qSDJLXC3a5qW QkeFiZlACJxDxQlS 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hw.wangxiaoyin@hisilicon.com, Guodong Xu , Jeremy Linton 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.10.2 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", },