f71882fg.c (bf61c8840efe60fd8f91446860b63338fb424158) | f71882fg.c (a8b3a3a53f9a814e9938ea9cc179086ff5c0a387) |
---|---|
1/*************************************************************************** 2 * Copyright (C) 2006 by Hans Edgington <hans@edgington.nl> * 3 * Copyright (C) 2007-2011 Hans de Goede <hdegoede@redhat.com> * 4 * * 5 * This program is free software; you can redistribute it and/or modify * 6 * it under the terms of the GNU General Public License as published by * 7 * the Free Software Foundation; either version 2 of the License, or * 8 * (at your option) any later version. * --- 2253 unchanged lines hidden (view full) --- 2262 } 2263 2264 return err; 2265} 2266 2267static int f71882fg_probe(struct platform_device *pdev) 2268{ 2269 struct f71882fg_data *data; | 1/*************************************************************************** 2 * Copyright (C) 2006 by Hans Edgington <hans@edgington.nl> * 3 * Copyright (C) 2007-2011 Hans de Goede <hdegoede@redhat.com> * 4 * * 5 * This program is free software; you can redistribute it and/or modify * 6 * it under the terms of the GNU General Public License as published by * 7 * the Free Software Foundation; either version 2 of the License, or * 8 * (at your option) any later version. * --- 2253 unchanged lines hidden (view full) --- 2262 } 2263 2264 return err; 2265} 2266 2267static int f71882fg_probe(struct platform_device *pdev) 2268{ 2269 struct f71882fg_data *data; |
2270 struct f71882fg_sio_data *sio_data = pdev->dev.platform_data; | 2270 struct f71882fg_sio_data *sio_data = dev_get_platdata(&pdev->dev); |
2271 int nr_fans = f71882fg_nr_fans[sio_data->type]; 2272 int nr_temps = f71882fg_nr_temps[sio_data->type]; 2273 int err, i; 2274 u8 start_reg, reg; 2275 2276 data = devm_kzalloc(&pdev->dev, sizeof(struct f71882fg_data), 2277 GFP_KERNEL); 2278 if (!data) --- 423 unchanged lines hidden --- | 2271 int nr_fans = f71882fg_nr_fans[sio_data->type]; 2272 int nr_temps = f71882fg_nr_temps[sio_data->type]; 2273 int err, i; 2274 u8 start_reg, reg; 2275 2276 data = devm_kzalloc(&pdev->dev, sizeof(struct f71882fg_data), 2277 GFP_KERNEL); 2278 if (!data) --- 423 unchanged lines hidden --- |