From patchwork Mon Aug 19 11:38:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuntao Liu X-Patchwork-Id: 820587 Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DA2116B749; Mon, 19 Aug 2024 11:47:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724068032; cv=none; b=YBFlIVqgARBWeuk76p1uwBnkU0r9dr1ZK+sQvjGoODzUoD9smwEuTI8jXTYG4KoKv+FIvbfIqzaZ5c9YgqNqfUEQCk4kNFyb+mwHEFs0mSpH08qY8KmUfzrpKo58prJATex2X7jZ8K6kgLeaknJNTHwkY6FB3a2ZY6MfkL3KhEM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724068032; c=relaxed/simple; bh=jVAwT47XN9zj0wF6+/HGo3XhnEvwxlE1jmzxIA97Xjo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=knqHx/i10V+lB3LjfXlBD2/j21/sp8CpuyXZybWVVwXOEBONjZzqtcIJRJZALavpV//qxVud1mOiNvdlkIK5u0tvokYH24hJhsmx0i0QQfUYhKm4XF8WhLmta5DP457We7gaPygKykCzvrXB1LNeWjSqsY9N7Hjr5QffCETPnCs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4WnW4B5NnPz1xvTY; Mon, 19 Aug 2024 19:45:14 +0800 (CST) Received: from kwepemg500010.china.huawei.com (unknown [7.202.181.71]) by mail.maildlp.com (Postfix) with ESMTPS id 611201401F2; Mon, 19 Aug 2024 19:47:08 +0800 (CST) Received: from huawei.com (10.67.174.76) by kwepemg500010.china.huawei.com (7.202.181.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 19 Aug 2024 19:47:07 +0800 From: Yuntao Liu To: , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH -next 4/9] i2c: at91: fix module autoloading Date: Mon, 19 Aug 2024 11:38:50 +0000 Message-ID: <20240819113855.787149-5-liuyuntao12@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240819113855.787149-1-liuyuntao12@huawei.com> References: <20240819113855.787149-1-liuyuntao12@huawei.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemg500010.china.huawei.com (7.202.181.71) Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from platform_device_id table. Signed-off-by: Yuntao Liu --- drivers/i2c/busses/i2c-at91-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-at91-core.c b/drivers/i2c/busses/i2c-at91-core.c index dc52b3530725..bc3636f90712 100644 --- a/drivers/i2c/busses/i2c-at91-core.c +++ b/drivers/i2c/busses/i2c-at91-core.c @@ -107,6 +107,7 @@ static const struct platform_device_id at91_twi_devtypes[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(platform, at91_twi_devtypes); #if defined(CONFIG_OF) static struct at91_twi_pdata at91sam9x5_config = {