From patchwork Tue Nov 18 19:27:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 41084 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3438D24035 for ; Tue, 18 Nov 2014 19:27:29 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id k14sf4031636wgh.8 for ; Tue, 18 Nov 2014 11:27:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=aXbNH7f+F0QkH5w2iGuxfebpE7oKuqH/eCNfyGSO/ws=; b=dopNXCjoPp/3JLWm0B6ZVUWckYscPsgl9+WAkxkS165gVEIo4o+646HhZKm/sYGtB4 SZutEj6Lb4k7Mjx/27DbD7ZUpuEQN6R2YKV9Lk4eQBHCfT475aYhwmKoCbeqHHe9ajhj z0IzY0+PojddqPv+UB8ju45fKULzPgRnQ+JWRviLqAqTMEfwVcElRP87bAfaD9N8oMrE cF0xSuXgj3o/7w0hYO1X0Mxe+6sEZJULyRyaLVEK8p6RmD9swzNtliod4uDHQ3DTbRO8 r2WGkQmWDSyzhl+9C2GTfj3N2p7aSkMhk7XwHUjX03jsNFLfpKF3R5vutBNu5O8kfSD4 pSsA== X-Gm-Message-State: ALoCoQnC5t0hWzKB4sxtjo0reHnzGX+EAELTZUHGDjWpRsMmeGtjvk3+z2URkp/1msWvK/RdhodX X-Received: by 10.112.188.199 with SMTP id gc7mr10352203lbc.6.1416338848435; Tue, 18 Nov 2014 11:27:28 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.170 with SMTP id p10ls221930lal.35.gmail; Tue, 18 Nov 2014 11:27:28 -0800 (PST) X-Received: by 10.152.88.69 with SMTP id be5mr949647lab.36.1416338848293; Tue, 18 Nov 2014 11:27:28 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id 9si56927360lai.28.2014.11.18.11.27.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Nov 2014 11:27:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id s18so6705991lam.15 for ; Tue, 18 Nov 2014 11:27:28 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr960706laz.27.1416338848158; Tue, 18 Nov 2014 11:27:28 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp1389094lbc; Tue, 18 Nov 2014 11:27:27 -0800 (PST) X-Received: by 10.70.94.197 with SMTP id de5mr6473394pdb.161.1416338846376; Tue, 18 Nov 2014 11:27:26 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cg2si39003241pad.34.2014.11.18.11.27.25 for ; Tue, 18 Nov 2014 11:27:26 -0800 (PST) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754213AbaKRT1Z (ORCPT + 1 other); Tue, 18 Nov 2014 14:27:25 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:57332 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753829AbaKRT1Y (ORCPT ); Tue, 18 Nov 2014 14:27:24 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id sAIJRN0a018612; Tue, 18 Nov 2014 13:27:23 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id sAIJRMCB022878; Tue, 18 Nov 2014 13:27:22 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Tue, 18 Nov 2014 13:27:22 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id sAIJRMwP024859; Tue, 18 Nov 2014 13:27:22 -0600 From: Felipe Balbi To: Dmitry Torokhov CC: Linux OMAP Mailing List , Felipe Balbi , , Subject: [PATCH v2] input: touchscreen: edt-ft5x06: fix driver autoprobing Date: Tue, 18 Nov 2014 13:27:42 -0600 Message-ID: <1416338862-8240-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <20141118192112.GM6179@saruman> References: <20141118192112.GM6179@saruman> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Because with OF we can pass more specific compatible flags (such as edt-ft5306) instead of generic edt-ft5x06, when i2c-core's of_i2c_register_devices() tries to request_module(), it'll request it with a non-existent specific module alias. In order to have this driver autoprobing again, we just need to add missing MODULE_ALIAS() entries to edt-ft5x06 driver. Thanks to Dmitry for noticing that it actually should autoprobe even with of_device_id. Cc: Dmitry Torokhov Cc: Cc: # v3.15+ Fixes: dac90dc2 (Input: edt-ft5x06 - add DT support) Signed-off-by: Felipe Balbi --- drivers/input/touchscreen/edt-ft5x06.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index ee3434f..bcbf688 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -1147,6 +1147,9 @@ static struct i2c_driver edt_ft5x06_ts_driver = { module_i2c_driver(edt_ft5x06_ts_driver); +MODULE_ALIAS("i2c:edt-ft5206"); +MODULE_ALIAS("i2c:edt-ft5306"); +MODULE_ALIAS("i2c:edt-ft5406"); MODULE_AUTHOR("Simon Budig "); MODULE_DESCRIPTION("EDT FT5x06 I2C Touchscreen Driver"); MODULE_LICENSE("GPL");