From patchwork Tue Mar 3 01:08:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 5918611 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 581739F36A for ; Tue, 3 Mar 2015 01:09:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8549820253 for ; Tue, 3 Mar 2015 01:09:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A7B4820155 for ; Tue, 3 Mar 2015 01:09:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754859AbbCCBIv (ORCPT ); Mon, 2 Mar 2015 20:08:51 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:39088 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753719AbbCCBIu (ORCPT ); Mon, 2 Mar 2015 20:08:50 -0500 Received: by pdjy10 with SMTP id y10so43967086pdj.6 for ; Mon, 02 Mar 2015 17:08:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=xNatbAiCMTgEEPDteKjgEaBIJ07o4vFjVGjC4JOP7iA=; b=Gx4vk7UaQnA1KHWHm4YF7PbtvWStgtASniMp0/7L9sE8+DDXqPZ7zOV85vEEkhMVGv aqZGiBhqxY3VMdvT57IMH7cXoGvKlPL04pOrwYIhWm/UI+RlgrepkwIBvVMtD2kEI4Qp nG/ATmRS+Y0uet5NdpX8Aq5s3apw+amhh+l84kBaCIXZrTGcp8zEkZn4RrUXj5g8fmrk bu7uguH66Z9PHtDI997kOJ04Acp6TLJbzNGz5GzX5sbnAQeZ2f+sV44HAT3wIau2cNB7 SPj+VYNXmUzV1tQl1SqlQte8gMYUwB+wljWj7NlIyD3zOebMN816nDlrYzTV6w72H085 c6vg== X-Gm-Message-State: ALoCoQmm3lXMRa4PIihxhnzjxYy+nsu57TxksqZ8MXX/re6aUMusLY96nMW3W+hwj5X1PJJ0kGJp X-Received: by 10.66.221.135 with SMTP id qe7mr50543012pac.97.1425344930065; Mon, 02 Mar 2015 17:08:50 -0800 (PST) Received: from [1.167.78.34] (1-167-78-34.dynamic.hinet.net. [1.167.78.34]) by mx.google.com with ESMTPSA id ly7sm13242130pdb.1.2015.03.02.17.08.46 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 17:08:47 -0800 (PST) Message-ID: <1425344923.4315.3.camel@phoenix> Subject: [PATCH] phy: samsung-usb2: Remove NULL terminating entry from phys array From: Axel Lin To: Kishon Vijay Abraham I Cc: Kamil Debski , Kukjin Kim , linux-kernel@vger.kernel.org, "linux-samsung-soc@vger.kernel.org" Date: Tue, 03 Mar 2015 09:08:43 +0800 X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Current code uses num_phys settings to tell the number of entries in phys. Thus remove the NULL terminating entry from phys array which is not necessary. Signed-off-by: Axel Lin Acked-by: Kamil Debski --- drivers/phy/phy-exynos4210-usb2.c | 1 - drivers/phy/phy-exynos4x12-usb2.c | 1 - drivers/phy/phy-exynos5250-usb2.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/phy/phy-exynos4210-usb2.c b/drivers/phy/phy-exynos4210-usb2.c index 236a52a..f30bbb0 100644 --- a/drivers/phy/phy-exynos4210-usb2.c +++ b/drivers/phy/phy-exynos4210-usb2.c @@ -250,7 +250,6 @@ static const struct samsung_usb2_common_phy exynos4210_phys[] = { .power_on = exynos4210_power_on, .power_off = exynos4210_power_off, }, - {}, }; const struct samsung_usb2_phy_config exynos4210_usb2_phy_config = { diff --git a/drivers/phy/phy-exynos4x12-usb2.c b/drivers/phy/phy-exynos4x12-usb2.c index 0b9de88..765da90 100644 --- a/drivers/phy/phy-exynos4x12-usb2.c +++ b/drivers/phy/phy-exynos4x12-usb2.c @@ -361,7 +361,6 @@ static const struct samsung_usb2_common_phy exynos4x12_phys[] = { .power_on = exynos4x12_power_on, .power_off = exynos4x12_power_off, }, - {}, }; const struct samsung_usb2_phy_config exynos3250_usb2_phy_config = { diff --git a/drivers/phy/phy-exynos5250-usb2.c b/drivers/phy/phy-exynos5250-usb2.c index 1c139aa..2ed1735 100644 --- a/drivers/phy/phy-exynos5250-usb2.c +++ b/drivers/phy/phy-exynos5250-usb2.c @@ -391,7 +391,6 @@ static const struct samsung_usb2_common_phy exynos5250_phys[] = { .power_on = exynos5250_power_on, .power_off = exynos5250_power_off, }, - {}, }; const struct samsung_usb2_phy_config exynos5250_usb2_phy_config = {