From patchwork Fri Jun 2 08:51:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 100994 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp284436qge; Fri, 2 Jun 2017 01:53:49 -0700 (PDT) X-Received: by 10.99.43.201 with SMTP id r192mr5833525pgr.135.1496393629181; Fri, 02 Jun 2017 01:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496393629; cv=none; d=google.com; s=arc-20160816; b=H60bwfEasnal2+rF9ewrzMxnt8LHwdFW+ofpHSG+MP2PwzIfOUkL9sLFhDo1XB9rVK OyivdxbUz9UsdSmiCECo8YUUTE3SxFtof4/sk2gQuWpmCSXhDH8EnY9Z5C8y9prQJPVo sw8i/OjBlyG9kelplUqdrK+TYTk1zFXKHtg+WlsvnnbD4H39DoA4E0nuGrkgVsgBtGJE K+Q2hZph/ExMNETgkcTN005kemY/ujACDr735qhALpHs+30cAy75eryXsSiXxVM2Qp1J 9+B4U6bSVPUeNHMFLzBt+ueoSBhtgfLXDKgJy8Ev1VHZHYqC3OeZ3qsDkvLhaVEWmO19 h/mg== 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=yK2s+oxFAVo7NXxeOAucuvB0gCLfaC+zdkc1F1aUZXkaw/T2jh/ACYpVBLx68wyPud 1mLk0IHj9H6tMOd4p2l0DPYt9gb/niVhe3zk+VlrDoQb1T2wWduewm6tauphav3Rwxpv liWLWH9SISUoc0+G0hA2WEq9EQhVdfjp/3BZC1BwnOV2BcKfvvrelFFBypit3nIrl8vI ugM5wfXAJb0rpOubf1VIXPtaFsMgEEU6s92RfgJZ2pG5HMp3SqG0tjxngulrYBCMrUiN VnkQ16HjptU3gERG4Vka9VqdNd7qpDvRn2DQYB1yUYunY7AXQm/zMUzEkNbp7IGZLarn FCvw== 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 w65si22173927pgb.340.2017.06.02.01.53.48; Fri, 02 Jun 2017 01:53:49 -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 S1751334AbdFBIx3 (ORCPT + 25 others); Fri, 2 Jun 2017 04:53:29 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:36032 "EHLO mail-it0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750813AbdFBIxZ (ORCPT ); Fri, 2 Jun 2017 04:53:25 -0400 Received: by mail-it0-f52.google.com with SMTP id m47so559056iti.1 for ; Fri, 02 Jun 2017 01:53:25 -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=hwWZHxtWj1H//dpyj/sw3mAfc1Nm2YLukc10Q73fQVa3ugLMaSDsuig4koCa4x/2gW rBCNI+GInjL7n2W8M6QuMAkmWMrQlUEEftqnOeICaWZ3MQd/89L6vgy2O7o17CD9WSya zlCRsq8O/hFqIQQOZTzeXqagDcx+hNncosGKg= 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=ZGtU7kHjXHXatmZd9T1z4w2qbw4cvBSINHc7FF4qE1xS6yGzMRiNp8EFolY8z2x1Wd d/zjqXN/m8iqs968r/ibeffSTLh/kqcRtB4zJ34cDcOvWJ9YWlF+cVMfffv6U5LJ7EpC zr1Av56xM0RL7zeCUOdAWPpW+wKYWKJ0mD/2P23w3IZMeDmuIYVb0ahQZdatGxQUT+km ddPYr3/1Eya2AbYkPxrpP4SWBFhMSYSpLmP7ODB9sdL2CTdBG3QLRkknBQAc5tp4HNl/ xpgApenjzW3m1+fLdVFnlH3KBJVg1RguE7UFKn0yFySQLRrsxmpKQyLoWA+nCb50rH2u luEQ== X-Gm-Message-State: AODbwcAAChoL7/nyLBlMXTdnljmpMH9wWH0lriZfM3zdhzYpKI6gbGs9 JcQ8vCs/bFh8Zmcw X-Received: by 10.98.194.132 with SMTP id w4mr5768039pfk.176.1496393530223; Fri, 02 Jun 2017 01:52:10 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.223]) by smtp.gmail.com with ESMTPSA id d185sm32608146pgc.39.2017.06.02.01.52.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jun 2017 01:52:09 -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 v2 4/6] regulator: hi6421: Describe consumed platform device Date: Fri, 2 Jun 2017 16:51:15 +0800 Message-Id: <20170602085117.27474-5-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170602085117.27474-1-guodong.xu@linaro.org> References: <20170602085117.27474-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", },