lkml.org 
[lkml]   [2015]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 5/5] i2c-i801: fixup regarding watchdog timer
Date
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Change &array[0] to array since it's the same.

It fixes 80 character limit warning as well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
---
drivers/i2c/busses/i2c-i801.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index c79dbe116ccc..e41005927746 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1173,7 +1173,8 @@ static void i801_add_tco(struct i801_priv *priv)
if (!(tco_ctl & TCOCTL_EN))
return;

- memset(&tco_res[0], 0, sizeof(tco_res));
+ memset(tco_res, 0, sizeof(tco_res));
+
res = &tco_res[ICH_RES_IO_TCO];
res->start = tco_base & ~1;
res->end = res->start + 32 - 1;
@@ -1226,7 +1227,7 @@ static void i801_add_tco(struct i801_priv *priv)
res->flags = IORESOURCE_MEM;

pdev = platform_device_register_resndata(&pci_dev->dev, "iTCO_wdt", -1,
- &tco_res[0], 3, &tco_platform_data,
+ tco_res, 3, &tco_platform_data,
sizeof(tco_platform_data));
if (IS_ERR(pdev)) {
dev_warn(&pci_dev->dev, "failed to create iTCO device\n");
--
2.1.0


\
 
 \ /
  Last update: 2015-07-27 16:01    [W:0.239 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site