Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1730773lqe; Mon, 8 Apr 2024 20:10:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwn9I7H4ICGwWH8uKwuAbjmQSLYO8kqBC7CE2YMyury3ovDWX3Vq5FmPsbR8kja7D/+fWpnAd2XuXImeV9dv+p1ZfrtGLAccagx42hLg== X-Google-Smtp-Source: AGHT+IHPMN2wPRLpP3bvXSQNbnjNizZeEojK43GGHpVJG9BVBStIKhmqeJ5gekV02OlgjsAexFAD X-Received: by 2002:a17:906:7949:b0:a51:d522:13dd with SMTP id l9-20020a170906794900b00a51d52213ddmr3810989ejo.47.1712632223843; Mon, 08 Apr 2024 20:10:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712632223; cv=pass; d=google.com; s=arc-20160816; b=SF4lJIPEKApG6ZiCsheu3R1NIcq5xB6/z2d1KDnJ30CAA+BRvV4JHAIxZXBcEpZX0H eM5PWyz1tm/7cAxrXlaWVaToe1njfzg34lq3Q9LGVvOpwRcSp4iDU/oGGswMuSHshCQ/ 5Grzu45P1zyfX4BrB5TA/abFgAVknovBvy7xHt29tuWt6SMoWpKFoM8KTxBSRct1DC/7 ikcfRpaqZF9R30uoiVqZnEdRJU1+PK682kf3ZyNs+79BxZEF5FUWrKi7cHCsX3TSbjBP UkTGgPC1GmRcaBtzQUNrZJ6qPoZ2Aiom9Lweo99KlFEPWV0bkRHZ39EGOrIduNMtQ+hM NGrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=EhvuL5P3TlxjzcQd6pW4uxlTXYUmm9jt8zVSQaV1HJQ=; fh=rTSUnFG+mNMNsUtYdr6SZyhicYr4ejVCl8P1yR+7iyM=; b=hlbEZ+fWb4wezS9JSP/yyAo0tgjeUKjtSKd3FK3qVBPcjXCSjPxPOH3g80ghDuoBL4 qsk89TqROhvsA8QjqRPHLYah8ZvosXFO5y3lZgKyFaYhWLYhRGvYIKcE7w33dwuXssdg lWe53dB75vnCw/iQwR8yvwQ2ETFL8pZ7HxOnb6tH5BhpAPEMG0dcak7MAgOSGGsUb/XF 5m1gMYN4Vpifxys3UDJv4Pyng4XNhfeRIRu+f0fjsAaB1zeyKglh8NAS5M9Pe1S7Kqyl Gy5ApfWld8kOxOQKi+iQjQFV+3z8dpimoHc+14h21CPTtVFHbhwYQsnPMi6gOm8djBl5 tzJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=iscas.ac.cn); spf=pass (google.com: domain of linux-kernel+bounces-136169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136169-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g21-20020a170906395500b00a518fda6927si4183746eje.871.2024.04.08.20.10.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 20:10:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=iscas.ac.cn); spf=pass (google.com: domain of linux-kernel+bounces-136169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136169-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 91A711F24FD8 for ; Tue, 9 Apr 2024 03:10:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F333380BF2; Tue, 9 Apr 2024 03:09:27 +0000 (UTC) Received: from cstnet.cn (smtp84.cstnet.cn [159.226.251.84]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F212978276 for ; Tue, 9 Apr 2024 03:09:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.226.251.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712632167; cv=none; b=L6OUmf+b6R23HArsVDKNhSWB4p6itI1WxgbAuFENlMziLhl+UKPckZO4Y/hZvqfmFfXJdvI+MoBKBBeCEb3Q05fktxamLt9jqXMCuRt4if+D5Lp1sL4ZO2TlEvsTH33/cu1jXgtdkBTC8231dKcDjFY8bSoF3+aG5PAja4fYDRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712632167; c=relaxed/simple; bh=X+VO8HuoE5bRkZC0Q5GftJUm0IIW+qqgbmKJteybXgI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eM/yeWBEHXgzpqFMtDA31hJtNrm4Np9ovCvSkUZKqwpcjzpaVmOMcEFjI3XVIRln5zBd+v2r05uwaOGo7zGR5J+Lgvrvb8z0iDXR2qIHsP46GyungVnVLarmaqe+MQ6GPsgqXAktrHJRrxuKCDuujKlNYcbh5e6oGiW/RP0+T2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn; spf=pass smtp.mailfrom=iscas.ac.cn; arc=none smtp.client-ip=159.226.251.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iscas.ac.cn Received: from localhost (unknown [124.16.138.129]) by APP-05 (Coremail) with SMTP id zQCowADn7gJNsRRm0pFZAg--.12456S2; Tue, 09 Apr 2024 11:09:02 +0800 (CST) From: Chen Ni To: qiang.zhao@nxp.com, leoyang.li@nxp.com, saravanak@google.com, fido_max@inbox.ru Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chen Ni Subject: [PATCH] soc: fsl: qe: Add check for platform_driver_register Date: Tue, 9 Apr 2024 03:08:40 +0000 Message-Id: <20240409030840.666703-1-nichen@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:zQCowADn7gJNsRRm0pFZAg--.12456S2 X-Coremail-Antispam: 1UD129KBjvdXoW7GF4xAw45Ww1ftF1UZr13urg_yoW3Crc_Cr 4rW3W7Xr48ur9akF17tw43Zr929FWavrsaqF40qasxta4xtw17X3y5Zr13AF1kXr4rXFyU Kr9rZrySkw13WjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbz8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AKxVW8Jr 0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr 0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxAIw28IcxkI7VAK I48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7 xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xII jxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw2 0EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x02 67AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: xqlfxv3q6l2u1dvotugofq/ Return platform_driver_register() in order to transfer the error if it fails. Fixes: be7ecbd240b2 ("soc: fsl: qe: convert QE interrupt controller to platform_device") Signed-off-by: Chen Ni --- drivers/soc/fsl/qe/qe_ic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index bbae3d39c7be..f17de6000ff2 100644 --- a/drivers/soc/fsl/qe/qe_ic.c +++ b/drivers/soc/fsl/qe/qe_ic.c @@ -481,7 +481,6 @@ static struct platform_driver qe_ic_driver = static int __init qe_ic_of_init(void) { - platform_driver_register(&qe_ic_driver); - return 0; + return platform_driver_register(&qe_ic_driver); } subsys_initcall(qe_ic_of_init); -- 2.25.1