Skip to content

Commit daf9fe2

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: mfd: Several MFD drivers should depend on GENERIC_HARDIRQS mfd: Fix sm501 requested region size
2 parents 9d85929 + 8d002bd commit daf9fe2

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎drivers/mfd/Kconfig‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ config MFD_CORE
1111

1212
config MFD_88PM860X
1313
bool "Support Marvell 88PM8606/88PM8607"
14-
depends on I2C=y
14+
depends on I2C=y && GENERIC_HARDIRQS
1515
select MFD_CORE
1616
help
1717
This supports for Marvell 88PM8606/88PM8607 Power Management IC.
@@ -205,7 +205,7 @@ config PMIC_ADP5520
205205

206206
config MFD_MAX8925
207207
bool "Maxim Semiconductor MAX8925 PMIC Support"
208-
depends on I2C=y
208+
depends on I2C=y && GENERIC_HARDIRQS
209209
select MFD_CORE
210210
help
211211
Say yes here to support for Maxim Semiconductor MAX8925. This is
@@ -226,7 +226,7 @@ config MFD_WM8400
226226
config MFD_WM831X
227227
bool "Support Wolfson Microelectronics WM831x/2x PMICs"
228228
select MFD_CORE
229-
depends on I2C=y
229+
depends on I2C=y && GENERIC_HARDIRQS
230230
help
231231
Support for the Wolfson Microelecronics WM831x and WM832x PMICs.
232232
This driver provides common support for accessing the device,
@@ -235,6 +235,7 @@ config MFD_WM831X
235235

236236
config MFD_WM8350
237237
bool
238+
depends on GENERIC_HARDIRQS
238239

239240
config MFD_WM8350_CONFIG_MODE_0
240241
bool
@@ -287,7 +288,7 @@ config MFD_WM8352_CONFIG_MODE_3
287288
config MFD_WM8350_I2C
288289
bool "Support Wolfson Microelectronics WM8350 with I2C"
289290
select MFD_WM8350
290-
depends on I2C=y
291+
depends on I2C=y && GENERIC_HARDIRQS
291292
help
292293
The WM8350 is an integrated audio and power management
293294
subsystem with watchdog and RTC functionality for embedded

‎drivers/mfd/sm501.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ static int __devinit sm501_plat_probe(struct platform_device *dev)
14301430
}
14311431

14321432
sm->regs_claim = request_mem_region(sm->io_res->start,
1433-
resource_size(sm->io_res), "sm501");
1433+
0x100, "sm501");
14341434

14351435
if (sm->regs_claim == NULL) {
14361436
dev_err(&dev->dev, "cannot claim registers\n");
@@ -1644,7 +1644,7 @@ static int __devinit sm501_pci_probe(struct pci_dev *dev,
16441644
sm->mem_res = &dev->resource[0];
16451645

16461646
sm->regs_claim = request_mem_region(sm->io_res->start,
1647-
resource_size(sm->io_res), "sm501");
1647+
0x100, "sm501");
16481648
if (sm->regs_claim == NULL) {
16491649
dev_err(&dev->dev, "cannot claim registers\n");
16501650
err= -EBUSY;

0 commit comments

Comments
 (0)