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: 9762225 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 C41E360365 for ; Fri, 2 Jun 2017 10:53:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADE092832D for ; Fri, 2 Jun 2017 10:53:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A216228517; Fri, 2 Jun 2017 10:53:36 +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 3B2802832D for ; Fri, 2 Jun 2017 10:53:36 +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=TlOn+9ysvIRDQ58KAa3MPkNDlu TTqLhfj4S7yh2Acxsy/ir3ZCZnGl1o110oH0evmW7iExE6mPPxkCfKoN7bl54EfMkS6g2X23wvLe0 mos94EC5lPg3gLpHJCymn6CDeYIxAP0zyY4Yj5/vIWHX8cTpiBH9if2OQ00CTtwIGxc8BV391/SsU aZRB1M1Fg4eiP0jGLpomy4vgEVPHB6uW/lyrxeixdHhqxiRe7w6VSlTu2HlaSM7mA3IbB5KeoMn+g x516E1eaW6iUjB0pV2RJam8aOqsBQfM4k76QlPn9L675bUsRbYOBKKmr66UwsZkSL8z194cDoorLS BFGtPnPQ==; 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 1dGkD0-0000vu-9w; Fri, 02 Jun 2017 10:53:34 +0000 Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGkCT-0008A6-Gt for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 10:53:05 +0000 Received: by mail-it0-x230.google.com with SMTP id m62so3080779itc.0 for ; Fri, 02 Jun 2017 03:52:40 -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=i+6kyvaWvOm/qUbTa1Avq/yW+VbV4+V3ME45rDzBzaSGG1TCOSTXBUgZ1O96/fGBxY ttWBPQvHE+J4DnOXQQiTI8OGFJStSSerVC/YOABOsHntGmlvi51lt5eWLLKENOGi+YX4 kCif0XDNuMe6LEzYJAgRD0iZV2arEwT8lztcEyU0DaByCoy78xrmDcmhj9asnfnrMSpE r8bEclAdq8MQv/tPjjlH0EoZmuOsZs8mg8EmJmSWGCSgIF7RLVNqzOe2FtPV0ftda4pg hDAr+JrfBLKlUngG86JRCB7SQr8pnRTJYtB02yHwDd7aGbbHW3mvtploo/d/ZJMGVSfd gs0g== X-Gm-Message-State: AODbwcA9kY3wKLi5ncUffA7Iz236Oiw82jqXCRZ6NfXxQjbfRgGzUDaK 1cLO7d3/co3pPvWy 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_035301_797414_71493531 X-CRM114-Status: GOOD ( 10.98 ) 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", },