clk-max77686.c (f9cfa6305198f190a685e45a3d78140ea8f298a9) | clk-max77686.c (018ae93fbc6cb2c843bb899bce05328c393b373d) |
---|---|
1/* 2 * clk-max77686.c - Clock driver for Maxim 77686 3 * 4 * Copyright (C) 2012 Samsung Electornics 5 * Jonghwa Lee <jonghwa3.lee@samsung.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 129 unchanged lines hidden (view full) --- 138 max77686->lookup->con_id = hw->init->name; 139 max77686->lookup->clk = clk; 140 141 clkdev_add(max77686->lookup); 142 143 return 0; 144} 145 | 1/* 2 * clk-max77686.c - Clock driver for Maxim 77686 3 * 4 * Copyright (C) 2012 Samsung Electornics 5 * Jonghwa Lee <jonghwa3.lee@samsung.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 129 unchanged lines hidden (view full) --- 138 max77686->lookup->con_id = hw->init->name; 139 max77686->lookup->clk = clk; 140 141 clkdev_add(max77686->lookup); 142 143 return 0; 144} 145 |
146static __devinit int max77686_clk_probe(struct platform_device *pdev) | 146static int max77686_clk_probe(struct platform_device *pdev) |
147{ 148 struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); 149 struct max77686_clk **max77686_clks; 150 int i, ret; 151 152 max77686_clks = devm_kzalloc(&pdev->dev, sizeof(struct max77686_clk *) 153 * MAX77686_CLKS_NUM, GFP_KERNEL); 154 if (IS_ERR(max77686_clks)) --- 90 unchanged lines hidden --- | 147{ 148 struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); 149 struct max77686_clk **max77686_clks; 150 int i, ret; 151 152 max77686_clks = devm_kzalloc(&pdev->dev, sizeof(struct max77686_clk *) 153 * MAX77686_CLKS_NUM, GFP_KERNEL); 154 if (IS_ERR(max77686_clks)) --- 90 unchanged lines hidden --- |