~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/s390/char/sclp_config.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
static int __init sclp_conf_init(void)
73
73
{
74
 
        int rc;
75
 
 
76
74
        INIT_WORK(&sclp_cpu_capability_work, sclp_cpu_capability_notify);
77
75
        INIT_WORK(&sclp_cpu_change_work, sclp_cpu_change_notify);
78
 
 
79
 
        rc = sclp_register(&sclp_conf_register);
80
 
        if (rc)
81
 
                return rc;
82
 
 
83
 
        if (!(sclp_conf_register.sclp_send_mask & EVTYP_CONFMGMDATA_MASK)) {
84
 
                pr_warning("no configuration management.\n");
85
 
                sclp_unregister(&sclp_conf_register);
86
 
                rc = -ENOSYS;
87
 
        }
88
 
        return rc;
 
76
        return sclp_register(&sclp_conf_register);
89
77
}
90
78
 
91
79
__initcall(sclp_conf_init);