Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2138622imm; Sat, 28 Jul 2018 10:02:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeLdtYPgdI5Gyc0eY5stdaGCYnM8D7SKUl0jtPMajuZ3bvYJAFEtBZH5zNY8muEHFm9dA8l X-Received: by 2002:a17:902:209:: with SMTP id 9-v6mr10436260plc.270.1532797340726; Sat, 28 Jul 2018 10:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532797340; cv=none; d=google.com; s=arc-20160816; b=lipHHiz0bJPV6+/Gs8h6kxC5ojEplxEEkaVcz2wXRkfO8XOnSUEhXVXkgQMVS0j5iT Ohcpfq5ykwvGtBXAT2schniwC7nQ08wEeXPggsxMMXSYD2Z9jaONHTT8wzC3L/vEsUT/ Wgg3fDs39adeEb2gYaDF/yLxSsmj8uFt5lGWMyra6hL5SRJ+QtwU9Tsqs5sFSqQpeP0w CK8zhCgD7Oah05v/qfV6fvwY/D2j/ziPaYq1Wua5bRTnHln6JwSQrLwT3xyuluGEsFWq 0THot0rgkVQxFOzw6Y5HPC7ne/bt/LcWPW2cSHji2v6VCcU99WlGlMCZIfJLKSJ4AEb3 s/YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=y9aqpK9SbyspEAmv+SvgNiUgirMmgn3TPQ4PSpzQhpM=; b=VUUa4WGOvCBr/M0YX+DjyQe2S2t/VY6WeCUTSBWbgsw1BboqUsaggC9xfwwZPfOGTf SCHE2hMpXJM2o9osJBvfk/gyW5IWw9Bb2UnAu97Sr4RQ8JuEqtVEPkFQ6r3yPoP06hcZ AS3G5wR8z/HvlaJ70q/HNDS9RC4EyBYhgZERaG0ZJ77nd5gjyWIac49URG+OqOijmK5X PcXkYoy7RNT372f9OHI5YiYxLHgSVVLSxnInXXzjJO7oAvikHpBQLJVCmil9Ef51n277 xDnmHsQBCKZkIlzNmtlhKPpAjb8F2jOvUfjox5b8wehImHMBatskpP98JRdZCxLgN9Tv 4Kyw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2-v6si1107168pgj.391.2018.07.28.10.02.05; Sat, 28 Jul 2018 10:02:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729503AbeG1S0s (ORCPT + 99 others); Sat, 28 Jul 2018 14:26:48 -0400 Received: from mail.andi.de1.cc ([85.214.239.24]:39726 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729453AbeG1S0s (ORCPT ); Sat, 28 Jul 2018 14:26:48 -0400 Received: from p200300ccfbf73b001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbf7:3b00:1a3d:a2ff:febf:d33a] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fjSZ4-0001JI-Lv; Sat, 28 Jul 2018 18:59:34 +0200 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1fjSZ4-00049L-7I; Sat, 28 Jul 2018 18:59:34 +0200 From: Andreas Kemnade To: Thierry Reding , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, j-keerthy@ti.com, tony@atomide.com, linux-omap@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH] pwm: pwm-omap-dmtimer: fix probing problems by returning EPROBE_DEFER Date: Sat, 28 Jul 2018 18:59:14 +0200 Message-Id: <20180728165914.15871-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I got this in the kernel log: [ 0.756042] omap-dmtimer-pwm dmtimer-pwm: dmtimer pdata structure NULL [ 0.756134] omap-dmtimer-pwm: probe of dmtimer-pwm failed with error -22 the probe function has to wait until omap_dm_timer_probe() in clocksource/timer-ti-dm.c has initialized pdata, so defer probing Fixes: b7290cf6ff78 (pwm: pwm-omap-dmtimer: Adapt driver to utilize dmtimer pdata ops) Signed-off-by: Andreas Kemnade --- drivers/pwm/pwm-omap-dmtimer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c index 665da3c8fbce..808835179c2e 100644 --- a/drivers/pwm/pwm-omap-dmtimer.c +++ b/drivers/pwm/pwm-omap-dmtimer.c @@ -264,8 +264,7 @@ 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; + ret = -EPROBE_DEFER; goto put; } -- 2.11.0