Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752151AbaBLKBh (ORCPT ); Wed, 12 Feb 2014 05:01:37 -0500 Received: from mail-ie0-f177.google.com ([209.85.223.177]:65420 "EHLO mail-ie0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbaBLKBe (ORCPT ); Wed, 12 Feb 2014 05:01:34 -0500 MIME-Version: 1.0 In-Reply-To: <1392123837-5517-8-git-send-email-k.kozlowski@samsung.com> References: <1392123837-5517-1-git-send-email-k.kozlowski@samsung.com> <1392123837-5517-8-git-send-email-k.kozlowski@samsung.com> Date: Wed, 12 Feb 2014 15:31:33 +0530 Message-ID: Subject: Re: [PATCH 07/14] regulator: s2mps11: Choose number of supported regulators during probe From: Yadwinder Singh Brar To: Krzysztof Kozlowski Cc: Sangbeom Kim , Samuel Ortiz , Lee Jones , linux-kernel , linux-samsung-soc , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Chanwoo Choi , Mark Brown , Liam Girdwood Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > + dev_type = platform_get_device_id(pdev)->driver_data; > + switch (dev_type) { > + case S2MPS11X: > + s2mps11->rdev_num = ARRAY_SIZE(s2mps11_regulators); > + regulators = s2mps11_regulators; How about creating and passing copy of s2mps11_regulators at runtime and making s2mps11_regulators __initdata ? Regards, Yadwinder -- 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/