From patchwork Wed Jun 14 15:11:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9786451 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 C182D60325 for ; Wed, 14 Jun 2017 15:11:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B528F28571 for ; Wed, 14 Jun 2017 15:11:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA1B8285C1; Wed, 14 Jun 2017 15:11:55 +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 46E0F28571 for ; Wed, 14 Jun 2017 15:11:55 +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: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:In-Reply-To: References:List-Owner; bh=IbSDoxyZRipHZvNmUU0WMjJcr5s8xgy6ILJZUCX5LXA=; b=qWZ fCc4ZyK2IYKoVKgUq0+MJVhmPH5jUCDLR0+3QZfbasUOyrv9YIKZ3KdQLotsbJoK3a0kkiubWiCtV aqaWkv7PKUQ4P1lzjCoJv4uYMLqTyQGjHsUCfNdtFV98lgUOji3w2ogu4Ix9TQU22nhsEVq7JOQA0 aPXk/xWX7DC6naH+DUFiMEo+/IbyTCePMn7oxikUS/gcohrzP0Lv/YWL0Sp9yBZVs/dqdViIrOFk8 QRe7aOi6+VUuodieS7NylR6VC28RI9NtFWdMn1xLEXAf6tN6qBUjTP3wFuqQ3+BTdobTE6NhtTvAU +3pp9v/Dg+HsKXPk8u9CLhZKMNeaJrg==; 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 1dL9xa-0004Um-9c; Wed, 14 Jun 2017 15:11:54 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL9xW-0004T4-GO for linux-arm-kernel@lists.infradead.org; Wed, 14 Jun 2017 15:11:52 +0000 Received: by mail-pf0-x234.google.com with SMTP id s66so1704887pfs.1 for ; Wed, 14 Jun 2017 08:11:30 -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; bh=EFmJWmg0Py7KIQ9pYB+tnOcIdlYEvNwArVDWDuEiAV0=; b=cKPkVTb+bZvNKIE3fbzdBEzObXXqD036l3pLGS8JjWWR0yAQYMWQhhBfElYvzIbpkR z1nlc8ZitvrQvki00qxRoHWzS8Zrcr6FDr2ncgd0AAnJFpCzGX5LEAx+ahqzyk3/krcK 0NwsKpUxH330esbm7L11B36XLlraIMnbDFQ24= 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; bh=EFmJWmg0Py7KIQ9pYB+tnOcIdlYEvNwArVDWDuEiAV0=; b=iYw0KmlOxxD3Q858IOxM9zLaG08yHsVzU/XRu7mYgeXDJR7YunI+7Lyg8deSVqevlG FrKAAy0SN3sbLlfRC/5mvQc9bMq01zDw3yD5ciVz/d//5K39Tb2RrKi6mvCumXRwqrWm 3CeUKozokhjttt2PCWUtgaN28i5/c5fEy1xNvtnhe9WsuUz4yIYpIF/v1GGoY5E7Xwu7 AL5/5wxFRerzejOXKcXLqehpYbE+aqpQBBE6ly2E7MKVrL9rItmrDCUtJIoBbYhG5fDS UIs5h6J8WLkXYewv6w1ETJ5xO5eSaL2SGurEoGHPCVWjkDT+5yuPfI7gfedyA64WFkNS SLvw== X-Gm-Message-State: AKS2vOxDmrocHIwjaU1KBEFO7hteWHmRzNmo8MOyo42pauGLtttXKMvN HEEvzKBgicyy3rYq X-Received: by 10.84.238.131 with SMTP id v3mr643827plk.168.1497453089651; Wed, 14 Jun 2017 08:11:29 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id c27sm488790pfj.107.2017.06.14.08.11.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 08:11:29 -0700 (PDT) From: Guodong Xu To: broonie@kernel.org, lgirdwood@gmail.com Subject: [PATCH] regulator: hi6421v530: Describe consumed platform device Date: Wed, 14 Jun 2017 23:11:06 +0800 Message-Id: <20170614151106.11423-1-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170614_081150_608589_D68D0DD3 X-CRM114-Status: GOOD ( 10.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: Guodong Xu , 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 hi6421v530-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. Signed-off-by: Guodong Xu --- drivers/regulator/hi6421v530-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/hi6421v530-regulator.c b/drivers/regulator/hi6421v530-regulator.c index 46bbba9..c09bc71 100644 --- a/drivers/regulator/hi6421v530-regulator.c +++ b/drivers/regulator/hi6421v530-regulator.c @@ -194,7 +194,14 @@ static int hi6421v530_regulator_probe(struct platform_device *pdev) return 0; } +static const struct platform_device_id hi6421v530_regulator_table[] = { + { .name = "hi6421v530-regulator" }, + {}, +}; +MODULE_DEVICE_TABLE(platform, hi6421v530_regulator_table); + static struct platform_driver hi6421v530_regulator_driver = { + .id_table = hi6421v530_regulator_table, .driver = { .name = "hi6421v530-regulator", },