From patchwork Fri Jun 2 10:51:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 101231 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp326438qge; Fri, 2 Jun 2017 03:53:00 -0700 (PDT) X-Received: by 10.99.111.194 with SMTP id k185mr6361091pgc.69.1496400780309; Fri, 02 Jun 2017 03:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496400780; cv=none; d=google.com; s=arc-20160816; b=yICWX8nGDic/ugqPNS69vx3Pbfi8eTa35UdBO8jjkpeoKS5FfK+d7wMbfD/SJbVsSW 8a+o8i7nNUX92hzdm4rn0HwnWxqEASGEFhvuDYhpaCEmc9y+rz09qySWPDJjwLLEJPYk PdN2slKsZwiNEfGyiyXIZztIDBSMlM1E7ypyC7Fjn3ji7D9ssRr4XZjtV9dqgO3SviTV GqnnM81Kt2tL4HOKLQkB3FbgN+dJwlGLp4OqpelIdd6hmGWPwibuyMREeR26Xp/qCHxr TcuaGB4kp2/CN5AZqWl3H77bRTwiUKgs8PSrJkbidd7M0qIBbo3B0Cg6BqavHXhqac9D PGIw== 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=naGpYXeGYyyeCpsF7bqS3o6vU8EZ/2Bbk3Eik+c5r36ss3klICTmPH0ZrcPyRCIwzZ x/oyPszXYxWquPsdf1Cxfw3uaO5CoI/RGFqQHIAiPMU+ap61mxPAP3IT4TeDeACW/yjd I/14sOITVWY1oksHMiU7Ee2B82Pqoe+JUMfTTUNCO3dLhBg7ldApQV6GJXnIoZKKlheP gtmH9sD+Vb/EGINMt0Z9ZMd6oICKVYwuj9fzGyMzMv8dhPDbFbm5ONNUlIg4CHJACdnK F7g+dA5rJondctSPGbzIdT6c0Mfhx+b1xojjh5ydZzK9Vk9uxr0N0XFzi09HlRovasmy b8+Q== 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 10si4843668pgc.152.2017.06.02.03.53.00; Fri, 02 Jun 2017 03:53:00 -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 S1751383AbdFBKwx (ORCPT + 25 others); Fri, 2 Jun 2017 06:52:53 -0400 Received: from mail-it0-f47.google.com ([209.85.214.47]:36838 "EHLO mail-it0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbdFBKwv (ORCPT ); Fri, 2 Jun 2017 06:52:51 -0400 Received: by mail-it0-f47.google.com with SMTP id m47so3175479iti.1 for ; Fri, 02 Jun 2017 03:52:50 -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=kUV4rddvpGK+VhVzjQMOBRmZ7ghZoX3Ru1sbKOQod6yNgiThtxWN2/duc4Zk7vWcjI qI5yTIHVOijnKG7ol+ao7OOC4gNTXFlgP7G5PTTycOYdbAfWjoDah8f3G8M42TFOSaec GtLNhbFQoAg4uladRtr8NnIbKEGg1idleBLKE= 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=XEnjyAIw4J+YxcmLtYOFEF0w3EwUGoav5EFjfj/QaIzIaJN5dlPMnjr6tAMfB7XFPV bGUhmlPeNLhGNjj02uVINa4xdA/jrXc9rzWsTUD/y17VjQ5J7CjkrofM2prLMrYoBZPJ GWv+Lmx5Y77Wmmh4yc6CVtem8C/12WZYuKBDOFHjCx29dODtqgAzJLTCgLpO84QAeHF3 tEScpDPFoqS98hQsz3HWSz4VLVGOXCORWkPacwdAGFLzV5nVFjLuGflqW7wKz5HmOi8o +yKL17b50JeDiEvBaLAz/N3brwG4qOaSs0ptEMzDjG3wK4rVQuH4NI0KDqhrnLfPtAce ui/A== X-Gm-Message-State: AODbwcDjjdRwbZHI/WQI3cdQsxG4A/Vc4leabLhEsBA/P5iQSmzqNhJA KHn9RM0eG5hRldc7 X-Received: by 10.99.124.94 with SMTP id l30mr6450774pgn.55.1496400760206; Fri, 02 Jun 2017 03:52:40 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.223]) by smtp.gmail.com with ESMTPSA id v64sm41662784pfk.86.2017.06.02.03.52.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jun 2017 03:52:39 -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 v3 4/6] regulator: hi6421: Describe consumed platform device Date: Fri, 2 Jun 2017 18:51:54 +0800 Message-Id: <20170602105156.11351-5-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170602105156.11351-1-guodong.xu@linaro.org> References: <20170602105156.11351-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", },