From patchwork Mon Jul 18 22:35:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Suchanek X-Patchwork-Id: 9235481 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 169A36075D for ; Mon, 18 Jul 2016 22:36:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06043205AA for ; Mon, 18 Jul 2016 22:36:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEC6F254F7; Mon, 18 Jul 2016 22:36:03 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 8BD46212CF for ; Mon, 18 Jul 2016 22:36:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752161AbcGRWgB (ORCPT ); Mon, 18 Jul 2016 18:36:01 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35377 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752145AbcGRWf4 (ORCPT ); Mon, 18 Jul 2016 18:35:56 -0400 Received: by mail-wm0-f66.google.com with SMTP id i5so536058wmg.2; Mon, 18 Jul 2016 15:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=jh4++BH9vis6phjO5v80ZnYRNLrcHaRRplDy1nWpvzA=; b=QqUKUtXsJ5BcZoNwhbl4OkvhrRepsL1irfrgYJF/rmIg96hY2iH0O3hE/L5AOTisHu zZzL90DCz1rjcLLhU/55dZdV1XBmOgpR9d6wIZUgCrmYSZolAxg/AYw/h0l/DbmFs5JU bkeTzaBsb+8JHhIJR65Pl3ivtCGIGymmWbgN2XZE5bqicbZLbEFsVe5T8j+NPzIHe7r4 cRF7Z1xQXx2Ldv+clhOupfWc/6sy/O4vrpLrLHQGOuKoV1F35USZZcL9cWktOwzSukcJ J/U4ojQZlCeev19PvaWacCz4GkvkBe4gHio7MQNPissd6f1cxFOeG9sCrS0oI9WhOFEM sprg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=jh4++BH9vis6phjO5v80ZnYRNLrcHaRRplDy1nWpvzA=; b=ZaF7Ls79ZYdUVC7HyduaOqBIh+0DYojh7LVn3qekFxxecm0D2OolW8xCyw9PwzZ93B n07MTOr9NECIz2Q8s8JDLExOj7FtAJDtu89bpJOil/FafO/djjap9fhZLOBiuyvLw2Qx dKLQ910NXEO6RZQ4ebE+l34Kd9RmsU/5mdoUzGSsO4sMzwmveAtdPnVUH3VpfYfrBTke kxcm3q7wi4AhW8XrIeSzQ2h0/OXMbqbBpu11BgvsQF6AKnR6T2NN+4LcIXcSVKi3FdT4 LSiOZ2i36gsmdFDR25qGmFyCSChRXx6Y7Oof34MxJKzE160WrgG8wJyCIA7e7LFTmBqC hodw== X-Gm-Message-State: ALyK8tIBvEVjMsUBct7kdtJuZ+QFWlLCRAmv0SFd79/FR4XzVza4HHlFe2LIQjojujf3XQ== X-Received: by 10.194.80.102 with SMTP id q6mr3095646wjx.28.1468881355233; Mon, 18 Jul 2016 15:35:55 -0700 (PDT) Received: from iscsi.burning-in.hell (2-166-195-217.cust.centrio.cz. [217.195.166.2]) by smtp.gmail.com with ESMTPSA id d80sm18830770wmd.14.2016.07.18.15.35.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 15:35:53 -0700 (PDT) From: Michal Suchanek To: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michal Suchanek Subject: [PATCH v3 2/3] spi: of: allow instantiating slaves without a driver Date: Tue, 19 Jul 2016 00:35:41 +0200 Message-Id: <42e65e5c714f079cb4b85761e59fb700d4550a26.1468880530.git.hramrach@gmail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SPI slave devices are not created when looking up driver for the slave fails. Create a device anyway so it can be used with spidev. Signed-off-by: Michal Suchanek --- drivers/spi/spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index f3ea768..f0de2ec 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1489,9 +1489,8 @@ of_register_spi_device(struct spi_master *master, struct device_node *nc) rc = of_modalias_node(nc, spi->modalias, sizeof(spi->modalias)); if (rc < 0) { - dev_err(&master->dev, "cannot find modalias for %s\n", + dev_warn(&master->dev, "cannot find modalias for %s\n", nc->full_name); - goto err_out; } /* Device address */