Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752397Ab3EFEhZ (ORCPT ); Mon, 6 May 2013 00:37:25 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:47098 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752233Ab3EFEhX (ORCPT ); Mon, 6 May 2013 00:37:23 -0400 X-AuditID: cbfee68f-b7f066d000003683-2c-518733794bf3 From: Jingoo Han To: "'Herbert Xu'" Cc: linux-kernel@vger.kernel.org, "'Matt Mackall'" , Jingoo Han Subject: [PATCH 1/4] hwrng: atmel - remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 13:37:13 +0900 Message-id: <004601ce4a13$60fa6620$22ef3260$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5KE0wUUmE8xx7vT3icNOlUsrysBQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsVy+t8zQ91K4/ZAg9+7ZSy6X8lYXF54idXi 8q45bBYLtvUxOrB4bDug6tG3ZRWjR9/LDYwenzfJBbBEcdmkpOZklqUW6dslcGVc3+JUcImt 4sft10wNjCdZuxg5OSQETCS+Tb7FDmGLSVy4t54NxBYSWMYoMb+zEqZm1d1TQPVcQPHpjBK/ n01ihyj6xSixpT8SxGYTUJP48uUwWFxEQE+ib30jI4jNLJAmsX3jf7ChwgK+EncevAerYRFQ lXh/6jHYEbwClhITN/xngbAFJX5MvscC0aslsX7ncSYIW15i85q3zBAHKUjsOPuaEWbXzK/z 2SBqRCT2vXjHCHKohMAqdokFr69ALRMA+vIQ0FAOoISsxKYDUHMkJQ6uuMEygVFsFpLVs5Cs noVk9SwkKxYwsqxiFE0tSC4oTkovMtYrTswtLs1L10vOz93ECImv/h2Mdw9YH2JMBlo/kVlK NDkfGJ95JfGGxmZGFqYmpsZG5p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Q5+SLm6SnRNxcY3coqLA1ezC3xq7PeHXRgpcH6/nolluKMREMt5qLi RABgqlWEIwMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1068 Lines: 32 The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han --- drivers/char/hw_random/atmel-rng.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c index 7c73d4a..bf9fc6b 100644 --- a/drivers/char/hw_random/atmel-rng.c +++ b/drivers/char/hw_random/atmel-rng.c @@ -108,8 +108,6 @@ static int atmel_trng_remove(struct platform_device *pdev) clk_disable(trng->clk); clk_put(trng->clk); - platform_set_drvdata(pdev, NULL); - return 0; } -- 1.7.2.5 -- 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/