tree-wide: fix assorted typos all over the place
[linux-2.6.git] / drivers / media / dvb / frontends / au8522_decoder.c
index 9e9a755..7c6431f 100644 (file)
@@ -315,7 +315,7 @@ static void setup_decoder_defaults(struct au8522_state *state, u8 input_mode)
        if (input_mode == AU8522_INPUT_CONTROL_REG081H_SVIDEO_CH13 ||
            input_mode == AU8522_INPUT_CONTROL_REG081H_SVIDEO_CH24) {
                /* Despite what the table says, for the HVR-950q we still need
-                  to be in CVBS mode for the S-Video input (reason uknown). */
+                  to be in CVBS mode for the S-Video input (reason unknown). */
                /* filter_coef_type = 3; */
                filter_coef_type = 5;
        } else {
@@ -792,6 +792,11 @@ static int au8522_probe(struct i2c_client *client,
        }
 
        demod_config = kzalloc(sizeof(struct au8522_config), GFP_KERNEL);
+       if (demod_config == NULL) {
+               if (instance == 1)
+                       kfree(state);
+               return -ENOMEM;
+       }
        demod_config->demod_address = 0x8e >> 1;
 
        state->config = demod_config;