From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762008AbcLSAN3 (ORCPT ); Sun, 18 Dec 2016 19:13:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44268 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757498AbcLSANY (ORCPT ); Sun, 18 Dec 2016 19:13:24 -0500 From: Hans de Goede To: MyungJoo Ham , Chanwoo Choi Cc: linux-kernel@vger.kernel.org, Hans de Goede Subject: [PATCH 8/8] extcon: axp288: Fix the module not auto-loading Date: Mon, 19 Dec 2016 01:13:13 +0100 Message-Id: <20161219001313.13402-8-hdegoede@redhat.com> In-Reply-To: <20161219001313.13402-1-hdegoede@redhat.com> References: <20161219001313.13402-1-hdegoede@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 19 Dec 2016 00:13:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a MODULE_DEVICE_TABLE to fix the module not auto-loading. Signed-off-by: Hans de Goede --- drivers/extcon/extcon-axp288.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index a27ee68..509a5f9 100644 --- a/drivers/extcon/extcon-axp288.c +++ b/drivers/extcon/extcon-axp288.c @@ -320,8 +320,15 @@ static int axp288_extcon_probe(struct platform_device *pdev) return 0; } +static const struct platform_device_id axp288_extcon_table[] = { + { .name = "axp288_extcon" }, + {}, +}; +MODULE_DEVICE_TABLE(platform, axp288_extcon_table); + static struct platform_driver axp288_extcon_driver = { .probe = axp288_extcon_probe, + .id_table = axp288_extcon_table, .driver = { .name = "axp288_extcon", }, -- 2.9.3