iTCO_wdt.c (bf61c8840efe60fd8f91446860b63338fb424158) iTCO_wdt.c (bc8fdfbe75058c6569dd6a08bdc2a411db533c47)
1/*
2 * intel TCO Watchdog Driver
3 *
4 * (c) Copyright 2006-2011 Wim Van Sebroeck <wim@iguana.be>.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 380 unchanged lines hidden (view full) ---

389 iTCO_wdt_private.gcs_res = NULL;
390 iTCO_wdt_private.gcs = NULL;
391}
392
393static int iTCO_wdt_probe(struct platform_device *dev)
394{
395 int ret = -ENODEV;
396 unsigned long val32;
1/*
2 * intel TCO Watchdog Driver
3 *
4 * (c) Copyright 2006-2011 Wim Van Sebroeck <wim@iguana.be>.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 380 unchanged lines hidden (view full) ---

389 iTCO_wdt_private.gcs_res = NULL;
390 iTCO_wdt_private.gcs = NULL;
391}
392
393static int iTCO_wdt_probe(struct platform_device *dev)
394{
395 int ret = -ENODEV;
396 unsigned long val32;
397 struct lpc_ich_info *ich_info = dev->dev.platform_data;
397 struct lpc_ich_info *ich_info = dev_get_platdata(&dev->dev);
398
399 if (!ich_info)
400 goto out;
401
402 spin_lock_init(&iTCO_wdt_private.io_lock);
403
404 iTCO_wdt_private.tco_res =
405 platform_get_resource(dev, IORESOURCE_IO, ICH_RES_IO_TCO);

--- 181 unchanged lines hidden ---
398
399 if (!ich_info)
400 goto out;
401
402 spin_lock_init(&iTCO_wdt_private.io_lock);
403
404 iTCO_wdt_private.tco_res =
405 platform_get_resource(dev, IORESOURCE_IO, ICH_RES_IO_TCO);

--- 181 unchanged lines hidden ---