From patchwork Thu Jun 20 08:11:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 167305 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1758877ilk; Thu, 20 Jun 2019 01:11:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRnNRTHNCURwNNlQQ6+Z2svSnFRSC5Vk/+PaHXPcS0Wj1A/4Fb3NU5LO3EJCKnQzPGWEwi X-Received: by 2002:a17:902:e40f:: with SMTP id ci15mr45660456plb.103.1561018300880; Thu, 20 Jun 2019 01:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561018300; cv=none; d=google.com; s=arc-20160816; b=EO6NvDc3gARlovtI6g26zVYV487h5yt0ZgWLaGj1fDdT8YieBcxm3943uiP7EDUtpV Ejiv+geqljhv7xf5o3yRyJhZeq4UnSrc1Ub8W+dx9LD8n7QJSz6EFKlsvJFJit4mYFyW tzA8u9BslrOYI4N4ti4UVC/r1oGbbQanleGX3bdBXr8v8hP+oKtjD1U3QmyDXQoj+4l6 GGk8lhX3z9FGfXurKfw4P782kgH7TLS+CWTQobij3PDJH9d7Xypia00iQ9EuxtqX0tab quzuiFMd/+xz5vkpZY5S91Qz7HB4YaXJXSFa/r3HsEd0+L47DX1I9vwPgrpyG5rWbrC/ b9Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HhWyyUaFjokwwCj2d1/nEx4QjaLwX5bSHXHfoJ/Z1z4=; b=w/bhNpQDe0bUZ83IZH7R7QbosEBZoHeq0FSqjLuB5RnGp8D/F7ZpOP1M0hSUtp6jhj PtTvJhqFEesyzvIxryyPtVcHWjkhUyZSCJnxcJWIeFqZxH8a/jG8pnL+vN4Re3qPkFLi Pb+gN1tX75KjqvJkTmNowRjAb/ZhJ6wK0Te380DUWQSMBDgQYYZZjNDh/968r7P7mzvL opKHhCz2rvO48lslsbB4EYxWI1+nqUwlgFaijBKNCpLKZpz2oSjl7kIl7yaRy2Q9M9qi OcvwybXmD1myodbBvtiSlrzUq1HTdVaCAZ+wmnTof4lXIz80/fdGdZH6y3bLZWbEmQp0 c1yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PdSWTevo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3si5064288pgp.583.2019.06.20.01.11.40; Thu, 20 Jun 2019 01:11:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PdSWTevo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731150AbfFTILj (ORCPT + 30 others); Thu, 20 Jun 2019 04:11:39 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38628 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbfFTILf (ORCPT ); Thu, 20 Jun 2019 04:11:35 -0400 Received: by mail-wr1-f66.google.com with SMTP id d18so2003500wrs.5 for ; Thu, 20 Jun 2019 01:11:34 -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 :mime-version:content-transfer-encoding; bh=HhWyyUaFjokwwCj2d1/nEx4QjaLwX5bSHXHfoJ/Z1z4=; b=PdSWTevoSjMzvE1lmytqcgGP0RPJzKrM/e7aTP+8QeiMu0OnXdcMYmHugWc7jRuWa7 ODM7F9jtOna23X01M84cHN4WO2ADB1u0UZJNBYff3lcyv9QVEo/1GMvgUI2+cyL151qM +wPj/ZlKF+qWkg3KVXqNkgbrOrudX0MFEFXbSRuDgXAmzJP5hxTBy1W0STvDt0CuJDDq AZDwcR1lrDCTQs1OlP5QDbQnEib7ttSGqpAgJnSSuagSjwtf+tGh3F2iWGFn4TwW65L5 Z25fM51nzg6unt1ho3xAOJ7YlMgtCGDSZMpTyvzL5EPtv6x6IPSMW+vnZrXcnsBTr3+G NWDA== 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:mime-version:content-transfer-encoding; bh=HhWyyUaFjokwwCj2d1/nEx4QjaLwX5bSHXHfoJ/Z1z4=; b=jeNLbXtgc7X41nIuddbuUlzXOMwTBX4dohSUseOqwtzwnGeuIjOYcRnDuaUAKMHIcK 9RRDOn3Lm4LkpkNB+iVE92pvirsc1nImrLobVq95F3o6tn1SE/jMG/Mr5uGMv75xFw+t 6V1aE0Ub2+SVctUxHlGvWm4jZMqa12FueqBqDJoZFTGx26IsQYSNetswBLyV7Kalmewb F4t9ryYR0Dkl45Z0W/Y9HC14sPw0uSnz+dXkS3XZ9DFGrmhpHRCu0vr1tS/5yJuxIEXo /FQ+c8hTCQRaYzUSgnYaVqjaPIqTkICiDXE3pe912P5YuNcFcB7lGt5j9w+8Wz6Nfq7n eHnA== X-Gm-Message-State: APjAAAVZWTUpabVuoH/4clZ2kwukabiwBp24MGZlExGLYMDWYslOT0zF qAasf4SHyDePV1VrzukUBLUM3Q== X-Received: by 2002:a05:6000:146:: with SMTP id r6mr78481877wrx.237.1561018293930; Thu, 20 Jun 2019 01:11:33 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id q12sm17559174wrp.50.2019.06.20.01.11.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 20 Jun 2019 01:11:33 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 3/3] slimbus: core: generate uevent for non-dt only Date: Thu, 20 Jun 2019 09:11:29 +0100 Message-Id: <20190620081129.4721-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190620081129.4721-1-srinivas.kandagatla@linaro.org> References: <20190620081129.4721-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rely on MODULE_ALIAS() for automatic kernel module loading, rather than basing it on the OF compatible. This ensures that drivers without of_device_id table, such as wcd9335, will be automatically loaded. Signed-off-by: Srinivas Kandagatla [bjorn: Added commit message] Signed-off-by: Bjorn Andersson --- drivers/slimbus/core.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.21.0 diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index b2f07d2043eb..526e3215d8fe 100644 --- a/drivers/slimbus/core.c +++ b/drivers/slimbus/core.c @@ -98,11 +98,6 @@ static int slim_device_remove(struct device *dev) static int slim_device_uevent(struct device *dev, struct kobj_uevent_env *env) { struct slim_device *sbdev = to_slim_device(dev); - int ret; - - ret = of_device_uevent_modalias(dev, env); - if (ret != -ENODEV) - return ret; return add_uevent_var(env, "MODALIAS=slim:%s", dev_name(&sbdev->dev)); }