Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp944138imm; Thu, 4 Oct 2018 06:01:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV63hlBwgDR8HBkCbtWe/MQx3U+5SLfapZmJIvqEEUmcE2zNpj77lRO94Zl40hLI9o6U9d/Qw X-Received: by 2002:a63:6385:: with SMTP id x127-v6mr5689169pgb.10.1538658114488; Thu, 04 Oct 2018 06:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538658114; cv=none; d=google.com; s=arc-20160816; b=Ibj8EnPAbhESOV/GO/v5t3RyZL5xwp3t0nqrmPmIQ+gWT6M0oUySMi13l+oJ2EV27q MZUiIvDjQpJaFf+u5bpCYmCe/HTSvPEBBRpx1cMSyJh/PE01ozVZ5ygyqN60wwU+VRgx azJdTwUmroo14EX8drFfqI6YFXNgfFHxEuC0bJlOpko244/zL+Eh7RfxPgCesgzObFwB EtrkQVzF4G+yMvXs2sPV5O350v1d3UhdJ0CzkZf7zYiw/p1P2qPm2E1etS6l9AGaM0hq hD6/3Gb3FC62dZsSjiXR/vr65gGZO1+Z7ZSti1XSudMYw0WQnbklr+5PzbeQe98pj8hz uYmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=07UVT8AT/WIvxk7YqGQ2CULDktLqJYK6DbMGdKzq18o=; b=g97/g+SZbN5Kjx0Su01HWlHUJaUjwZUmaiCMIqwO2KdRssv6SySGymKgz7kMTtJ/K1 qYyETi5MIPrko+4P+5CBpbQ2mw8xj4oeP3Ru7AMFeARflNpeCBPEYyZP2h0YnZfhTg7N 7wLNbDE4cPZK4KI6wJdLIAxJO0UDaaClO3bAkfVAqnOhx87XnlUsHiquMpVLzP6oICpn BuCQmyyza6GplvZtuAWi6+caRESkapFb+I9nt14/pHpS64SSYlzsHJ5ks8UE2X6JKUR8 LXqZS9mTDlbPZgT4F3nVi8zFi84aNaGzr7tCzn/BiRBiC7tLL6BF1W5Xb6mpFu2zTJ8h 1F+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="N/rqbKWO"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u68-v6si5354075pfa.28.2018.10.04.06.01.38; Thu, 04 Oct 2018 06:01:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="N/rqbKWO"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727537AbeJDTyl (ORCPT + 99 others); Thu, 4 Oct 2018 15:54:41 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46864 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727436AbeJDTyk (ORCPT ); Thu, 4 Oct 2018 15:54:40 -0400 Received: by mail-lj1-f195.google.com with SMTP id 203-v6so8253084ljj.13 for ; Thu, 04 Oct 2018 06:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=07UVT8AT/WIvxk7YqGQ2CULDktLqJYK6DbMGdKzq18o=; b=N/rqbKWOjv4JZB2KzozopLDsUfVYb2X7N+HYHiYIL9sCkIp/UBzjQwlbOhIW5PQAvE 1qsRUxPIMoYtRXpYKCuoRjBJkhakRjr5qzxhP5MUramb0rcVo/9TxWq138GcSLblYzZ+ s/QNuTvOqYFpqtPgZ/FlmC56A6yM5YLCpIJEUGsKlx4FE+SDn+Zxy0j1JM9a4gRvLRW0 bWi+smC3xkcD9PB+u8WitHxyO/HwWi5XkYnirDTV5CthLdhV6P5VFpEIWTrKgB0qp5uV GP/3UoHf5ioxuXosjfUcxFVNDYNaaVxgTdZyJsT/RagOyCy8TPoDvEWaIad9oAMW/j+D /OcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=07UVT8AT/WIvxk7YqGQ2CULDktLqJYK6DbMGdKzq18o=; b=ufzSGvtztvg5Gqhj0W5MX4I8dCBCsvPHo4Bnt4JAvYqIiKS6XHIlXDfIBoL8Nqtxa6 OYbqMFXIQj25JdM/YLWmtE2RUbV1dq0e6vtosxy6grVVWNWGj7lQgwV3gCZv5EHW4MNy uoz8khEbW5jVkrZdKul28+EHqFh9X/NPRMFTVxYu8IiZUSrhS/b0GGpKsxHBQFvYkOoV mheI5TypuWl2DPIP6rHNrxxPzGlUDx7/utDgdv2Gg/x5u8L3XI7ed+9SwRlZspxn5Uvl eI28H32hj7gQ6uyoTXkZT0rho+Q8YU9L2z+CWDdzpOG0R+FxvuVd0KPnRZ0G0CPZQZYc n/ZQ== X-Gm-Message-State: ABuFfoiQvpdhsa9rXB1DH4DaJ6I+FrW2qrMQZfY50pMhLJ/8B41BiBGN RmYG+con+f0266w8YOwo3u4= X-Received: by 2002:a2e:5859:: with SMTP id x25-v6mr3012996ljd.7.1538658086969; Thu, 04 Oct 2018 06:01:26 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id a1-v6sm421415lfk.63.2018.10.04.06.01.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Oct 2018 06:01:25 -0700 (PDT) From: Ricardo Ribalda Delgado To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Zhouyang Jia , linux-mtd@lists.infradead.org, open list Cc: Ricardo Ribalda Delgado Subject: [PATCH v6 03/10] mtd: maps: gpio-addr-flash: Replace custom printk Date: Thu, 4 Oct 2018 15:01:03 +0200 Message-Id: <20181004130110.8496-3-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181004130110.8496-1-ricardo.ribalda@gmail.com> References: <20181004130110.8496-1-ricardo.ribalda@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use preferred print methods dev_* Signed-off-by: Ricardo Ribalda Delgado --- drivers/mtd/maps/gpio-addr-flash.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/maps/gpio-addr-flash.c b/drivers/mtd/maps/gpio-addr-flash.c index 9d9723693217..17be47f72973 100644 --- a/drivers/mtd/maps/gpio-addr-flash.c +++ b/drivers/mtd/maps/gpio-addr-flash.c @@ -25,11 +25,7 @@ #include #include -#define pr_devinit(fmt, args...) \ - ({ static const char __fmt[] = fmt; printk(__fmt, ## args); }) - #define DRIVER_NAME "gpio-addr-flash" -#define PFX DRIVER_NAME ": " /** * struct async_state - keep GPIO flash state @@ -250,7 +246,7 @@ static int gpio_flash_probe(struct platform_device *pdev) i = 0; do { if (gpio_request(state->gpio_addrs[i], DRIVER_NAME)) { - pr_devinit(KERN_ERR PFX "failed to request gpio %d\n", + dev_err(&pdev->dev, "failed to request gpio %d\n", state->gpio_addrs[i]); while (i--) gpio_free(state->gpio_addrs[i]); @@ -260,8 +256,8 @@ static int gpio_flash_probe(struct platform_device *pdev) gpio_direction_output(state->gpio_addrs[i], 0); } while (++i < state->gpio_count); - pr_devinit(KERN_NOTICE PFX "probing %d-bit flash bus\n", - state->map.bankwidth * 8); + dev_notice(&pdev->dev, "probing %d-bit flash bus\n", + state->map.bankwidth * 8); state->mtd = do_map_probe(memory->name, &state->map); if (!state->mtd) { for (i = 0; i < state->gpio_count; ++i) -- 2.19.0