lkml.org 
[lkml]   [2012]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 1/2] regulator: dummy: Specify a struct device
    From
    Date
    On Tue, 2012-05-08 at 18:16 +0100, Mark Brown wrote:
    > This will be becoming mandatory.
    >
    > Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
    > ---
    > drivers/regulator/dummy.c | 1 +
    > 1 file changed, 1 insertion(+)
    >
    > diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c
    > index 1571bee..86f655c 100644
    > --- a/drivers/regulator/dummy.c
    > +++ b/drivers/regulator/dummy.c
    > @@ -42,6 +42,7 @@ static int __devinit dummy_regulator_probe(struct platform_device *pdev)
    > struct regulator_config config = { };
    > int ret;
    >
    > + config.dev = &pdev->dev;
    > config.init_data = &dummy_initdata;
    >
    > dummy_regulator_rdev = regulator_register(&dummy_desc, &config);

    Both

    Acked-by: Liam Girdwood <lrg@ti.com>



    \
     
     \ /
      Last update: 2012-05-10 12:01    [W:0.025 / U:0.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site