From patchwork Thu Jul 12 17:28:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Rivshin X-Patchwork-Id: 10522081 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3710A602B3 for ; Thu, 12 Jul 2018 17:36:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18DD621327 for ; Thu, 12 Jul 2018 17:36:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C85429B76; Thu, 12 Jul 2018 17:36:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0B0921327 for ; Thu, 12 Jul 2018 17:36:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726634AbeGLRqk (ORCPT ); Thu, 12 Jul 2018 13:46:40 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:36619 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbeGLRqk (ORCPT ); Thu, 12 Jul 2018 13:46:40 -0400 X-Greylist: delayed 419 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Jul 2018 13:46:40 EDT Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 82BB732A; Thu, 12 Jul 2018 13:29:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 12 Jul 2018 13:29:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=awxrd.com; h=cc :date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Gvk9EnhZrjbfAifEWagj4dQnMyyZ0L9fc53xjtuyJ FA=; b=3lkbYpF89/KmucAZJ+rB2/xfiAClZ8RDhAETBy1e2IfWezwgwMFoqclbU 7EIWzG21vFDDNOE/iUiHl1WP2ltuevBn/LQ92pio/R9Z8WpACOnTL+pHfJ/9dAJ+ h6gzVPidTmAiZd8mPr6phak4M1oePrwm9eGJ4yO67iL4BI3/ZrzTbpAzYjUXcebB G82bhxU7zalacPspjhfSq5dFLtkg5BKKfFzqxDKi/oCtIzorrsCZ4w/1gmhzjbuE aMId8JDW5kPqnPkqwAC90MdJMKDJWnuddiqV/MYj9x+DliVwVOPu11Rlq1XNarEK atrSb8SmWAIIh+nuDHlEfO4jqLxIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Gvk9EnhZrjbfAifEW agj4dQnMyyZ0L9fc53xjtuyJFA=; b=TjiT/6Y4/SSpUvdBIFf9BEyA50olbMAEf RB6YnlirR08DtFjBAkz0wUS5+pro8QSj1X/kqiZsh8ndIK3C90v2XRrlz0xm2wac qyEv7lOKNjZ2BIySfnvcqgtdrnjz7iJiVQaktnkCbT+yYvAgWMOaKsTWyS58v8X1 E7vZEOwp75120pdW8SfnrjEgi3FZ+tYwil8+SpfsN+g3RCcAC8jGGrFPGD+8rPSw EMJbNFV2BvhGRkiBJ7SHDYI9zSTB2QtfGVqrk1TnddHQOE9jo5aI7VThUzn3p5Yi 7un3ZTIXvCADUeJqSACzNn1BmjXnKmTl20R1ZLI8eGZhUwZLJU0JA== X-ME-Proxy: X-ME-Sender: Received: from drivshin-linux.inscitek.com (unknown [24.213.148.66]) by mail.messagingengine.com (Postfix) with ESMTPA id 297991027D; Thu, 12 Jul 2018 13:29:08 -0400 (EDT) From: David Rivshin To: Thierry Reding , Keerthy , Ladislav Michl , Neil Armstrong Cc: linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tony Lindgren , Thomas Gleixner Subject: [PATCH] pwm: pwm-omap-dmtimer: return -EPROBE_DEFER if no dmtimer platform data Date: Thu, 12 Jul 2018 13:28:53 -0400 Message-Id: <20180712172853.22293-1-drivshin@awxrd.com> X-Mailer: git-send-email 2.17.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: David Rivshin If a pwm-omap-dmtimer is probed before the dmtimer it uses, the platform data won't be set yet. Fixes: ac30751df953 ("ARM: OMAP: pdata-quirks: Remove unused timer pdata") Cc: # 4.17+ Signed-off-by: David Rivshin --- drivers/pwm/pwm-omap-dmtimer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) base-commit: 1e4b044d22517cae7047c99038abb444423243ca diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c index 665da3c8fbceb..d3d7ea7a53146 100644 --- a/drivers/pwm/pwm-omap-dmtimer.c +++ b/drivers/pwm/pwm-omap-dmtimer.c @@ -264,8 +264,9 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev) timer_pdata = dev_get_platdata(&timer_pdev->dev); if (!timer_pdata) { - dev_err(&pdev->dev, "dmtimer pdata structure NULL\n"); - ret = -EINVAL; + dev_info(&pdev->dev, + "dmtimer pdata structure NULL, deferring probe\n"); + ret = -EPROBE_DEFER; goto put; }