Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932303AbbFWOu1 (ORCPT ); Tue, 23 Jun 2015 10:50:27 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:34791 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754734AbbFWOuV (ORCPT ); Tue, 23 Jun 2015 10:50:21 -0400 From: Antonio Borneo Cc: Antonio Borneo , linux-kernel@vger.kernel.org Subject: [PATCH 1/6] ASoC: wm0010: Remove redundant spi driver bus initialization Date: Tue, 23 Jun 2015 22:49:38 +0800 Message-Id: <1435070978-24312-1-git-send-email-borneo.antonio@gmail.com> X-Mailer: git-send-email 2.4.4 In-Reply-To: <1435070714-24174-1-git-send-email-borneo.antonio@gmail.com> References: <1435070714-24174-1-git-send-email-borneo.antonio@gmail.com> To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1232 Lines: 36 In ancient times it was necessary to manually initialize the bus field of an spi_driver to spi_bus_type. These days this is done in spi_register_driver(), so we can drop the manual assignment. Signed-off-by: Antonio Borneo To: Jaroslav Kysela To: Takashi Iwai To: Liam Girdwood To: Mark Brown To: alsa-devel@alsa-project.org To: patches@opensource.wolfsonmicro.com Cc: linux-kernel@vger.kernel.org --- sound/soc/codecs/wm0010.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index f37989e..61bfff4 100644 --- a/sound/soc/codecs/wm0010.c +++ b/sound/soc/codecs/wm0010.c @@ -1005,7 +1005,6 @@ static int wm0010_spi_remove(struct spi_device *spi) static struct spi_driver wm0010_spi_driver = { .driver = { .name = "wm0010", - .bus = &spi_bus_type, .owner = THIS_MODULE, }, .probe = wm0010_spi_probe, -- 2.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/