Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3829789imu; Mon, 7 Jan 2019 10:11:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN4XK2l6ufzY33l2dHYw+lT7y3g+7Z3nfbg81KuQ0xWdJmH5BLvWUWSkmCb8g9WBVP+GHpsr X-Received: by 2002:a17:902:8f97:: with SMTP id z23mr62918560plo.283.1546884671696; Mon, 07 Jan 2019 10:11:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546884671; cv=none; d=google.com; s=arc-20160816; b=HG4p/gAT4RQCLfjVRHRE7KqQ+zpgd6RkRL2k5fzwBC/zPBQc6H6zit9SkKyiSspKhQ V+Xgf4BZ7KDBUKzz60mbRpLOB7VefzctuEMOA/5OPYWunnspnaXrkTtvnHz8hV3YzBUh Mnj661C/D7yBB6NU8DzpVQJQAq3JXCfGjhQ533RnFUuR2XHFqguYHm2SLOJl0O9prtT7 7nJAuQsjzpGVcWm9zJT7z8wtfcfp4ccMRpr+94wuAdaRw6xJ/arSH+KVo0pCAmzH5bKV ObaHEvB1gu08hqiB/xuwvrk5yCe3FovHDpoa25sDh75+srvOv0oXM45ERc3mUB/nXMy2 ovLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Y4nDVmZs/kn4rKsnx9mXGTFn5KmIxkdS54kk8CRo0nU=; b=q05df5saCWtYziYDjgZwQhiex1ZJmxLrzduZj2ZANQxJU+4gmvUT4g48ouUbRfNMJn 5sSf18LJzPhWtRR3CpsUd+WkUU3qB3Rmj6VN3w4ixEMWxbryfzPeU12onGzOK+HH5nZF ec4vmvFQ0gYTm8KdC2HQCGyVw5L2F60g9w35JsYN3Sn+IA7qMe6YU6gXPUEyZqgv19BV KlQWOmCAcYL3Op4+QkvmuqjtncbU5CahsA7eeKLIs3cBuAsEETcqmu3CtG4P1zOjRZMK OeIQeXE8BKIn2jfQc1eA8fgAfiZ63ckNZdQ5UFMwtho0It5agCicL9esMbtUQZd9dF8o IIzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VfUN/cy5"; 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 37si4949629pgs.447.2019.01.07.10.10.55; Mon, 07 Jan 2019 10:11:11 -0800 (PST) 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="VfUN/cy5"; 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 S1727682AbfAGRbC (ORCPT + 99 others); Mon, 7 Jan 2019 12:31:02 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34864 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726886AbfAGRbB (ORCPT ); Mon, 7 Jan 2019 12:31:01 -0500 Received: by mail-pf1-f196.google.com with SMTP id z9so498310pfi.2 for ; Mon, 07 Jan 2019 09:31:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Y4nDVmZs/kn4rKsnx9mXGTFn5KmIxkdS54kk8CRo0nU=; b=VfUN/cy5kRyqgJYzi8mAY9GD7JREnEmz4Lqg2pAUSXhRshKY1JF9GfsyBbLc/j/jT0 W7bF6kADXMd/lBkOGt4I2n4lhWN8SHMQhhL4EVgXrp/Vuv0WZwRM345tv+4Q+CnbCDun NOcumtqJ4mH7aowWPeEHqe06RFcXomOtANixY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Y4nDVmZs/kn4rKsnx9mXGTFn5KmIxkdS54kk8CRo0nU=; b=KvkJGAwNCJrl3/zsziDgM4U54AOpqfX/tJLcSdkxxZYvaOQKxRJjj4CV1ANvwfs4si 5dSFepdC2K1dkTilt/4e7NChh1WD1aUayuNEU5QbnLwTKTEsfX21Z1fqiILSbZw/BCMW L/ZyagaZ8AKLfR+ir7jFZkkWCWEX6RhDKea2kg1s1nqWiSMPcvxsbl7pyYyVlJl9Elo4 9OYW2J07lvhJpbNzGQ5b8Y5xFMcVv6ccHPme8QN6a+RN9n+/HOZsmO6axkwqWEyR+eaC Lfp7w4QgWog/sL8dULPvj19C2h1N9RyzbPkZqLaFT/wSuSqDJK1E1K4IjbvQtfmIi894 SEnQ== X-Gm-Message-State: AJcUukdITi6nDoREceAuKAccAKwPCjopX1cMs/bov3IlmKvBhAtiYJA/ X6kQPrF4ZrVRoJpkbv1XfwYgTA== X-Received: by 2002:a65:6542:: with SMTP id a2mr11594009pgw.389.1546882260969; Mon, 07 Jan 2019 09:31:00 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id y29sm87580147pga.59.2019.01.07.09.31.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Jan 2019 09:31:00 -0800 (PST) Date: Mon, 7 Jan 2019 09:30:03 -0800 From: Bjorn Andersson To: Pi-Hsun Shih Cc: Ohad Ben-Cohen , "open list:REMOTE PROCESSOR MESSAGING (RPMSG) SUBSYSTEM" , open list Subject: Re: [PATCH] rpmsg: core: Make remove handler for rpmsg driver optional. Message-ID: <20190107173003.GL31596@builder> References: <20190107113833.243672-1-pihsun@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190107113833.243672-1-pihsun@chromium.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 07 Jan 03:38 PST 2019, Pi-Hsun Shih wrote: > Most other bus (for example, SPI, i2c) have the remove handler for > driver optional. Make remove handler for rpmsg driver optional too. > > Signed-off-by: Pi-Hsun Shih Thanks Pi-Hsun, applied. Regards, Bjorn > --- > drivers/rpmsg/rpmsg_core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c > index 8122807db38094..ea88fd4e2a6ecf 100644 > --- a/drivers/rpmsg/rpmsg_core.c > +++ b/drivers/rpmsg/rpmsg_core.c > @@ -493,7 +493,8 @@ static int rpmsg_dev_remove(struct device *dev) > if (rpdev->ops->announce_destroy) > err = rpdev->ops->announce_destroy(rpdev); > > - rpdrv->remove(rpdev); > + if (rpdrv->remove) > + rpdrv->remove(rpdev); > > dev_pm_domain_detach(dev, true); > > -- > 2.20.1.97.g81188d93c3-goog >