diff options
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/at91_cf.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/soc_common.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c index b31862837534..99baabc23599 100644 --- a/drivers/pcmcia/at91_cf.c +++ b/drivers/pcmcia/at91_cf.c | |||
@@ -277,7 +277,7 @@ static int __init at91_cf_probe(struct platform_device *pdev) | |||
277 | board->det_pin, board->irq_pin); | 277 | board->det_pin, board->irq_pin); |
278 | 278 | ||
279 | cf->socket.owner = THIS_MODULE; | 279 | cf->socket.owner = THIS_MODULE; |
280 | cf->socket.dev.dev = &pdev->dev; | 280 | cf->socket.dev.parent = &pdev->dev; |
281 | cf->socket.ops = &at91_cf_ops; | 281 | cf->socket.ops = &at91_cf_ops; |
282 | cf->socket.resource_ops = &pccard_static_ops; | 282 | cf->socket.resource_ops = &pccard_static_ops; |
283 | cf->socket.features = SS_CAP_PCCARD | SS_CAP_STATIC_MAP | 283 | cf->socket.features = SS_CAP_PCCARD | SS_CAP_STATIC_MAP |
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c index d2a3bea55de2..aa7779d89752 100644 --- a/drivers/pcmcia/soc_common.c +++ b/drivers/pcmcia/soc_common.c | |||
@@ -478,7 +478,7 @@ dump_bits(char **p, const char *prefix, unsigned int val, struct bittbl *bits, i | |||
478 | * | 478 | * |
479 | * Returns: the number of characters added to the buffer | 479 | * Returns: the number of characters added to the buffer |
480 | */ | 480 | */ |
481 | static ssize_t show_status(struct device *dev, char *buf) | 481 | static ssize_t show_status(struct device *dev, struct device_attribute *attr, char *buf) |
482 | { | 482 | { |
483 | struct soc_pcmcia_socket *skt = | 483 | struct soc_pcmcia_socket *skt = |
484 | container_of(dev, struct soc_pcmcia_socket, socket.dev); | 484 | container_of(dev, struct soc_pcmcia_socket, socket.dev); |
@@ -501,7 +501,7 @@ static ssize_t show_status(struct device *dev, char *buf) | |||
501 | 501 | ||
502 | return p-buf; | 502 | return p-buf; |
503 | } | 503 | } |
504 | static CLASS_DEVICE_ATTR(status, S_IRUGO, show_status, NULL); | 504 | static DEVICE_ATTR(status, S_IRUGO, show_status, NULL); |
505 | 505 | ||
506 | 506 | ||
507 | static struct pccard_operations soc_common_pcmcia_operations = { | 507 | static struct pccard_operations soc_common_pcmcia_operations = { |
@@ -660,7 +660,7 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops | |||
660 | 660 | ||
661 | skt->socket.ops = &soc_common_pcmcia_operations; | 661 | skt->socket.ops = &soc_common_pcmcia_operations; |
662 | skt->socket.owner = ops->owner; | 662 | skt->socket.owner = ops->owner; |
663 | skt->socket.dev.dev = dev; | 663 | skt->socket.dev.parent = dev; |
664 | 664 | ||
665 | init_timer(&skt->poll_timer); | 665 | init_timer(&skt->poll_timer); |
666 | skt->poll_timer.function = soc_common_pcmcia_poll_event; | 666 | skt->poll_timer.function = soc_common_pcmcia_poll_event; |
@@ -747,7 +747,7 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops | |||
747 | 747 | ||
748 | add_timer(&skt->poll_timer); | 748 | add_timer(&skt->poll_timer); |
749 | 749 | ||
750 | device_create_file(&skt->socket.dev, &device_attr_status); | 750 | device_create_file(&skt->socket.dev, &dev_attr_status); |
751 | } | 751 | } |
752 | 752 | ||
753 | dev_set_drvdata(dev, sinfo); | 753 | dev_set_drvdata(dev, sinfo); |